Re: store array into session variable and get it back later

From: Date: Wed, 01 Oct 2008 12:43:16 +0000
Subject: Re: store array into session variable and get it back later
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281274@lists.php.net to get a copy of this message
1 okt 2008 kl. 12.31 skrev Alain Roger: ...
later on i try to use the content of this array, bt without success. Here is what i do: $bci = array($_SESSION['bc']);
array_push($bci,$_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$bci[$key]['name']; echo "<br/>"; }
how can i get the 'name' value for each row in this session stored array ? thx. ...
The function you need to look into is called "serialize". http://www.php.net/manual/en/function.serialize.php //frank

« previous php.general (#281274) next »