Re: character replace function
| From: | Steven Walker | Date: | Thu, 14 Feb 2002 18:53:54 +0000 |
| Subject: | Re: character replace function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84786@lists.php.net to get a copy of this message | ||
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
steve@walkereffects.com
On Thursday, February 14, 2002, at 10:48 AM, Aaron Gould wrote:
Try: $outputstring = str_replace($character_to_erase, '', $inputstring); -- Aaron Gould agould@partscanada.com Web Developer ----- Original Message ----- From: "Phil Schwarzmann" <pschwar@jhmi.edu> To: <php-general@lists.php.net> Sent: Thursday, February 14, 2002 1:38 PM Subject: [PHP] character replace functionI 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