http://www.php.net/manual/en/language.types.array.php
If you mean having an array inside an array, of course <? $arr =
array(array('data')); ?>. There you have an array inside another
one, 'data' will be here $var['0']['0'].
If you meant using an array item as the key in another array,
then you do it as with a normal var <? $arr1[$arr2['0']]; ?>.
Remember not to quote $arr2 just as you wouldn't a quote a var
when using it as the key.
In your question you're mixing both:
> Example: $paArgs['aCheckBoxes[$iIndex]['sName']']
Unquote 'aCheckBoxes[$iIndex]['sName']' and put the $ sign in
front:
$paArgs[$aCheckBoxes[$iIndex]['sName']]
I hope this helped.
Cristian
Robin Kopetzky wrote:
> Good morning all!!
>
> Can you nest an array within an array??
>
> Example: $paArgs['aCheckBoxes[$iIndex]['sName']']
>
> Thank you in advance.
>
> Robin 'Sparky' Kopetzky
> Black Mesa Computers/Internet Service
> Grants, NM 87020
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php