...

View Full Version : Assign preg match to varabiles



WebmasterLULZ
12-09-2008, 02:37 PM
Say if this is my total contents


<a href="example.php">result</a>
<a href="example.php">result</a>
<a href="example.php">result</a>


How would i go about saying
$link = ( pregmatcheverything in between href=" and ")
and $name = (preg match everything after $link and </a>)

I will give anyone thanks who helps me with this.

then echo all of the preg matched (both $link and $name) on the page.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum