note 19094 added to function.str-replace
| From: | m0sh3NO at SPAMhotmail dot com | Date: | Fri, 15 Feb 2002 15:46:42 +0000 |
| Subject: | note 19094 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26651@lists.php.net to get a copy of this message | ||
I found out that sometimes
$dest = str_replace($from, $to, $source)
requires quoted-printable encoding of
$to.
I think it's because of long $source ...
Took me an hour or two to understand why i'm getting weird results...
In my case:
$dest = str_replace(".php/",".php/ref=3D$ref&",$source);
I had to put '=3D' instead of '='.
Hope to save few hours to somebody :)
--
http://www.php.net/manual/en/function.str-replace.php
http://master.php.net/manage/user-notes.php?action=edit+19094
http://master.php.net/manage/user-notes.php?action=delete+19094
http://master.php.net/manage/user-notes.php?action=reject+19094