Re: creating multidimensional arrays

From: Date: Mon, 01 Jul 2002 15:09:00 +0000
Subject: Re: creating multidimensional arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104671@lists.php.net to get a copy of this message
On Mon, Jul 01, 2002 at 09:38:50PM +0800, DoL wrote: > Hi All > > I want to create a multi dimensional arrays as below > > $result[$something]['$key_string_01] = value_01 ^ Two things: | You didn't put a closing ' here ----- BUT, you probably don't want one, since it looks like you want that key to be a variable. Things between '' don't get evaluated. So the key would wind up literally being "$key_string_01" rather than the value of $key_string_01. Of course, this could be a typo as it looks like you retyped your code rather than direclty copying/pasting or importing the file into the email you were composing. If you want an accurate answer, provide an accurate example. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#104671) next »