Page 1 of 1

Re: Does str_replace have limits

Posted: Mon Oct 08, 2012 8:44 am
by us2rn4m2
No parse error in the first line.

Correction:

Code: Select all

$find  ='><a href="http://my.url.com/fancy-dress';
$_menu = str_replace($find, ' id="fancy-dress-tab"', $find);
echo $_menu;
http://php.net/manual/en/function.str-replace.php