Page 1 of 1

str_replace help!!!

Posted: Fri Apr 02, 2004 3:20 pm
by AznFuman
i want to use str_replace ("$a", "", $temp_string);
if i want to replace anything that is NOT $a.
what do i do?

thanks

Posted: Fri Apr 02, 2004 4:03 pm
by markl999
if i want to replace anything that is NOT $a
Not sure what you mean exactly, if you replace everything that is NOT $a with '', you'd just be left with $a (or multiple $a's) :o

Posted: Fri Apr 02, 2004 4:09 pm
by m3mn0n
[php_man]str_replace[/php_man]()