Fastest Web Hosting

get all anchor tag from string

0 votes
asked Jun 29 in PHP by rohit (2,750 points)

I am getting a string in response from curl and file_get_content functions . Now i want to store all href used in that string. It is hard and heavy to find with regular expression. Can anybody tell me how can i get it. Please send me any example ..

One Vote from my Side

Your answer


Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Job Board

TechnicalSharp is a technical community of developers where they are sharing their knowledge and solutions and against it they are getting the score point which help them to make profile strong which is under eyes on MNC's