Hello,
I'm parsing an HTML body and i replace all the links found by : LINK_1, LINK_2, etc.
I'm using this fonction to do this :
<?
echo preg_replace("|href=\"?([\"' >]+)|i", "href=\"LIEN_".$n ,$html_body);
?>
As you can see there is a "$n" (specify in the doc.), but the incrementing is not working, have u got an idea ?
I tested :
"href=\"LIEN".$n++ = Nothing
"href=\"LIEN".($n++) = Nothing
F.Y.I :
http://www.php.net/manual/fr/function.preg-replace.php
Thanks all ...