note 55235 deleted from function.strstr by betz
| From: | betz@php.net | Date: | Sat, 12 Nov 2005 08:34:29 +0000 |
| Subject: | note 55235 deleted from function.strstr by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98459@lists.php.net to get a copy of this message | ||
Note Submitter: the dot r3m0t at gmail dot com
----
bonyiii at freestart dot hu
That is incorrect. If you want to replace a character in a string with another character, use the
similarly-named strtr function ("string translate") or str_replace.
http://php.net/manual/en/function.str-replace.php
http://php.net/manual/en/function.strtr.php