| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|eregi replace Question|
| 10:10 pm on Dec 18, 2008 (gmt 0)|
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?
| 10:12 pm on Dec 18, 2008 (gmt 0)|
I'd suggest using str_replace [php.net] instead, you don't need regular expressions for something this simple.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved