note 28652 deleted from function.serialize by irchtml
| From: | irchtml@php.net | Date: | Sun, 08 Feb 2004 10:54:56 +0000 |
| Subject: | note 28652 deleted from function.serialize by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64820@lists.php.net to get a copy of this message | ||
Note Submitter: bob@bobnet.com
----
[Editor's Note]
Rather than using str_replace try base64_encode/base64_decode, or urlencode depending on your
needs.
I've had a lot of trouble with serializing objects. The problem is that special characters such
as < > ' ~ ` etc. will cause problems. You will need to use some form of encode and
decode function to fix this. in other words you need to str_replace all these with for example
{tildae}...