Re: Very Odd Session Array Problem

From: Date: Mon, 20 Dec 2004 22:39:12 +0000
Subject: Re: Very Odd Session Array Problem
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-204769@lists.php.net to get a copy of this message
Aaron Axelsen wrote:
I understand the recursion part, but i dont understand why this fixes it: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); That is essentially just reading the values out, and sticking them back in.
As already stated, your items seem to be self-referencing. It would appear that this process is inserting the *values* of those referenced cells into the quotes array instead of inserting references to the array itself. Sort of like a paste special -> values with Excel if that helps you.

« previous php.general (#204769) next »