I am trying to replace exact string with some other string but all what i have been trying not really work as i need.
Here is my string: http://test.com/?plus="ea="eb=
I need to replace quotea=
to quotea=cat
so that quoteb
want change.
I tried:
preg_replace('/quotea=/', 'quotea='. $parmeter.'', $str, 1);
str_replace( 'quotea=', 'quotea='. $parmeter.'', $str, $i );
After i run one of the code the result is:
http://test.com/?plus="ea=cat"eb=
What i am missing here?