note 7856 added to strtr
| From: | clambert at gamespy dot com | Date: | Thu, 17 Aug 2000 09:40:42 +0000 |
| Subject: | note 7856 added to strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2133@lists.php.net to get a copy of this message | ||
This function is case sensitive. Therefore, strtr("abc","ABC","xyz")
would return abc.
Perhaps we'll see an stritr in the future, but otherwise you'll have to:
1) call it with only two paramaters and use the array feature (PHP 4)
2) add on the extra characters to the end of both $to and $from
3) use eregi_replace
http://www.php.net/manual/function.strtr.php