Re: Re: SESSION array problems

From: Date: Wed, 01 Oct 2008 19:52:35 +0000
Subject: Re: Re: SESSION array problems
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-281330@lists.php.net to get a copy of this message
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

« previous php.general (#281330) next »