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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux