note 28652 modified in function.serialize by jsheets

From: Date: Sun, 19 Jan 2003 20:47:18 +0000
Subject: note 28652 modified in function.serialize by jsheets
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42396@lists.php.net to get a copy of this message
[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}... --was-- Ive had a whole lot of hell with serializing objects. The problem is that special characters such as < > ' ~ ` etc. will screw everything up. 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}... http://www.php.net/manual/en/function.serialize.php

« previous php.notes (#42396) next »