note 27762 added to function.unserialize

From: Date: Wed, 18 Dec 2002 06:09:37 +0000
Subject: note 27762 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-41040@lists.php.net to get a copy of this message
I've found the base64_encode and base64_decode functions extremely useful for this, especially when trying to send serialize()'d variables through HTTP requests. basically, just echo base64_encode(serialize($foo)) in the link/form field/whatever, then $foo=base64_decode(unserialize($_POST[foo])), and you'll be happy. -- http://www.php.net/manual/en/function.unserialize.php http://master.php.net/manage/user-notes.php?action=edit+27762 http://master.php.net/manage/user-notes.php?action=delete+27762 http://master.php.net/manage/user-notes.php?action=reject+27762

« previous php.notes (#41040) next »