I want to extract all links inside some pages with their link text to show in a block. I ‘ve tried regex but it doesn’t get correct result because the tags don’t have a fix pattern,they have various attribute.I use PHP.
How can i do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DOMDocument::loadHTML.
like :