Is there a way in my regular expression syntax to cause alternating
occurences of the search string to be replaced?
Here's my code:
$item[content] = eregi_replace($ search_string, $replace_string ,
$item[content]);
This successfully replaces all occurences of $search_string.
Any way to reaplce every other?
occurences of the search string to be replaced?
Here's my code:
$item[content] = eregi_replace($ search_string, $replace_string ,
$item[content]);
This successfully replaces all occurences of $search_string.
Any way to reaplce every other?
Comment