note 9027 added to serialize

From: Date: Thu, 12 Oct 2000 04:17:27 +0000
Subject: note 9027 added to serialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-6398@lists.php.net to get a copy of this message
PASSING AN ARRAY BETWEEN PAGES WITH SERIALIZE; 1st PAGE) $var=array("a","b","c"); $var=serialize($var); $var=urlencode($var); #pass the $var via hidden or get method 2nd PAGE) $var=//http post/get ["var"] $var=stripslashes($var); //no need to urldecode...rather strip the slashes $var=unserialize($var); foreach($var as $element){ echo "this->$element<br>"; } -oji ;0) http://www.php.net/manual/function.serialize.php

« previous php.notes (#6398) next »