You can also use the strtr() function: $new_data = strtr($data, "'", "`");// replaces ' with `
Also keep in mind that you can use the chr($number) to return special ascii characters. Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Thursday, February 14, 2002, at 10:48 AM, Aaron Gould wrote: > Try: > > $outputstring = str_replace($character_to_erase, '', $inputstring); > > -- > Aaron Gould > [EMAIL PROTECTED] > Web Developer > > > ----- Original Message ----- > From: "Phil Schwarzmann" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 14, 2002 1:38 PM > Subject: [PHP] character replace function > > >> I need a function that will erase a particular character in a string. >> >> Any ideas?!? >> >> >> THANKS!!!! >> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php