note 25663 deleted from function.unserialize by sniper

From: Date: Mon, 13 Oct 2003 03:21:42 +0000
Subject: note 25663 deleted from function.unserialize by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58508@lists.php.net to get a copy of this message
Note Submitter: NOSPAM-axel@subnet.at-NOSPAM ---- 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

« previous php.notes (#58508) next »