tall1
01-12-2006, 10:27 PM
ok what is wrong with this code?
$looking_for_url = str_replace(" ", "_", $looking_for);
I am trying to replace all spaces in variable "$looking_for" with an underscore.
e.g. $looking_for = "I am Happy!"
I want it to be: I_am_Happy!
$looking_for_url = str_replace(" ", "_", $looking_for);
I am trying to replace all spaces in variable "$looking_for" with an underscore.
e.g. $looking_for = "I am Happy!"
I want it to be: I_am_Happy!