Re: SESSION array problems
| From: | tedd | Date: | Wed, 01 Oct 2008 20:11:30 +0000 |
| Subject: | Re: SESSION array problems | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281338@lists.php.net to get a copy of this message | ||
At 3:41 PM -0400 10/1/08, tedd wrote:
My error, if produced. Cable, Diane a, i While print_r($_SESSION); JUST BEFORE IT produced: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] => 656 ) [first_name] => Array ( [0] => Diane [1] => first name [2] => Helen ) [last_name] => Array ( [0] => Cable [1] => CagoEsogs-temp (forum) [2] => Cahalane ) Now, what wrong with this picture? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comWhat 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