Re: Array question

From: Date: Sat, 27 Sep 2003 16:21:40 +0000
Subject: Re: Array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164096@lists.php.net to get a copy of this message
On Sat, 2003-09-27 at 12:18, Robin Kopetzky wrote: > Good morning all!! > > Can you nest an array within an array?? > > Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] You mean can you retrieve an array entry by giving a key defined by a value in another array? To do so remove the outer quotes in your above statement and add a $ to the interior array. Example: $paArgs[$aCheckBoxes[$iIndex]['sName']] Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#164096) next »