Re: Re: SESSION array problems

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

 



tedd wrote:
>> What about:
>>
>> foreach ($_SESSION['user_id'] as $key => $value)
>> {
>>     $last = $_SESSION['last_name'][$key];
>>     $first = $_SESSION['first_name'][$key];
>>     echo "$last, $first";
>> }
>
> Jay:
>
> Close, it produced:
>
> Array, Array
> Array, Array
> Array, Array
>
> Cheers,
>
> tedd
then your $_SESSION is not what you think it is and print_r() output is
not correct.
:-)

-afan



-- 
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