Forum Moderators: coopster
I have a string - let's say that it's:
My name is "Sam".
I am trying to get rid of the quotation marks around Sam, so that it will read:
My name is Sam.
However I am having trouble accomplishing this.
I am trying things like:
$title = eregi_replace("\"", "", $title);
But it's throwing off errors messages. Anyone know how to accomplish this?
Regards
Dave
I'd suggest using str_replace [php.net] instead, you don't need regular expressions for something this simple.
Andrew