Re: Problem adding value to session array

From: Date: Thu, 17 Jul 2003 14:16:23 +0000
Subject: Re: Problem adding value to session array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155618@lists.php.net to get a copy of this message
On Thursday 17 July 2003 22:06, Matt Palermo wrote: > I have a session array that stores some values that I set. It holds all > the inserted values, unless the value I want to insert has a space in it, > then it only inserts the characters before the space into the array. It > looks like this: > > // This works > $sessionArray[1] = "nospace"; > echo "result: ".$sessionArray[1]; // result: nospace > > // This doesn't work > $sessionArray[1] = "with space"; > echo "result: ".$sessionArray[1]; // result: with > // should be result: with space > > Anyone know how to fix or avoid this from happening? Could you post your *real* code, or post a short example which illustrates the problem. The above code works fine for me. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Toni's Solution to a Guilt-Free Life: If you have to lie to someone, it's their fault. */

« previous php.general (#155618) next »