Re: [PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Derek C Hopkins
Hi Terry Program now working like a charm. Your solution was what the doctor ordered. THANK'S At 02:15 PM 31/01/2007, Phillip Terry wrote: Try str_replace. $string = "whatever"; $invalidChars = array("(", ")", "\\", "\"", "'"); //put whatever characters here trim(str_replace($inv

Re: [PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Phillip Terry
Try str_replace. $string = "whatever"; $invalidChars = array("(", ")", "\\", "\"", "'"); //put whatever characters here trim(str_replace($invalidChars, "",$string)) - Original Message - From: "Derek C Hopkins" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 31, 2007 1:10 PM Subject