Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Assign preg match to varabiles
12-09-2008, 01:37 PM #1
- Join Date
- Mar 2008
- Thanked 0 Times in 0 Posts
Assign preg match to varabiles
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>
$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.