Jump to content

Searching then extracting


JordanStreet

Recommended Posts

I have a page with a lot of html jiberish and burried in that page is a series of links in the form of

 

<a href="site.php?site=xxxxx">xxxxx</a>

 

I want php to do this.

 

Search through the file and find each <a href="site.php?site=xxxxx">xxxxx</a> then isolate what is between site= and "> then add that to an array so that

 

$matches[0] = xxxxx

$matches[1] = xxxxx

 

How would I go about doing this ?

Thanks in advance guys :)

Link to comment
https://forums.phpfreaks.com/topic/45315-searching-then-extracting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.