note 25663 added to function.unserialize

From: Date: Tue, 01 Oct 2002 20:50:03 +0000
Subject: note 25663 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-37484@lists.php.net to get a copy of this message
if you want to save an array into a cookie, do this: setcookie("to_cookie", serialize($array), $expires); and get it back with this; $array = unserialize(preg_replace("'\\\'", "", $from_cookie) i don't know why, but stripslashes didn't work for me -- http://www.php.net/manual/en/function.unserialize.php http://master.php.net/manage/user-notes.php?action=edit+25663 http://master.php.net/manage/user-notes.php?action=delete+25663 http://master.php.net/manage/user-notes.php?action=reject+25663

« previous php.notes (#37484) next »