On Wed, Oct 1, 2008 at 2:43 PM, Frank Arensmeier <[EMAIL PROTECTED]> wrote:
> 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
>
This is what i did afterall, but when i unserialize it like this way:
$bci = unserialize($_SESSION['bc']);
foreach($bci as $key=>$value)
{
echo "bci : ".$key;
echo "<br/>";
}
i get absolutely the same result as the code below.
in fact $key returns me the 2 variables member of the Class. but not the
value stored inside them.
any idea ?
--
Alain
------------------------------------
Windows XP SP3
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008