Re: Array help please

From: Date: Fri, 04 May 2001 13:04:48 +0000
Subject: Re: Array help please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51408@lists.php.net to get a copy of this message
On Fri, May 04, 2001 at 01:19:57PM +0100, peter.beal wrote: > I'm trying to debug some software that I downloaded from the web. > It seems to work fine most of the time however it occasionally crashed with > database errors. > When I look at the code it has a lot of array references that i don't > understand > e.g. $Session[clientID] > most references at are of the form $arrayname["item"] or $arrayname[$item] > as I would expect. > is the example correct code? if so what does it mean? It either does the same thing as $Sessin["clientID"] The quotes are optional but recommended, because clientID could be defined as a constant and that could give unexpected results. -- Jason Stechschulte jpstech@unoh.edu -- : How would you disambiguate these situations? By shooting the person who did the latter. -- Larry Wall in <199710290235.SAA02444@wall.org>

« previous php.general (#51408) next »