Forum Moderators: coopster
<hr size=1 color=black>z1 <a href="/index_1_z_2.html">z2</a> <a href="/index_1_z_3.html">z3</a> </TD></TR><TR><TD class=test>
Now, from the above code I want to grab z3
I have this:
preg_match('~<hr size=1 color=black>(.*)\.html">(.*)</a> </TD></TR><TR><TD class=test>~i',$category_page,$num_of_pages);
I am getting an undefined offset error so must be doing it wrong. I want to grab z3 which is the second (.*)
Any help much appreciated! Thanks.