How does one escape a plus sign in PHP, or rather get it to work in the following script:
$who = preg_replace('/\%20/', ' ', $who);
$who = preg_replace('/-/', ' ', $who);
$who = preg_replace('/+/', ' ', $who);
The first two expressions work fine, the last is crashing, so there must be a problem with the + being executed instead of parsed as text the way I want... I've tried a backslash to no effect... (I'm not very good at PHP )
I'm trying to capture an URL which includes plus signs:
http:// www.URL . com/file.php?dog+cat+mouse
I'm stripping out the dog+cat+mouse and then stripping the plus signs, replacing them with spaces.