note 102086 deleted from function.str-replace by danbrown
| From: | danbrown@php.net | Date: | Wed, 26 Jan 2011 16:27:33 +0000 |
| Subject: | note 102086 deleted from function.str-replace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176353@lists.php.net to get a copy of this message | ||
Note Submitter: soletan
----
@Viam: have you tried strtr() instead?
$encrypted = strtr( $cleartext, 'abcdef...xyz', '012345...$%&' );
$decrypted = strtr( $encrypted, '012345...$%&', 'abcdef...xyz' );