Re: preg_replace single quote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Nowosielski wrote:

Hi All,

I'm trying to strip single quotes using preg_replace() with no luck.
Can someone give me some advice on achieving this?

TIA!

$string = preg_replace('/\'/', '', $string);

should work fine

Kind regards,
Thomas Obermüller

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux