How do I replace special chars in PHP?

So I'm running into a bit of trouble here trying to replace special characters. The " " quotes seem to be messing it up on some of them.


$r= str_replace(""", "X", $r);
$r= str_replace("#", "X", $r);
$r= str_replace("&", "X", $r);

Theres a few that don't work any ideas on how to fix it?
 
Back
Top