Re: add item to end of (multidimensional) array
| From: | Chris Boget | Date: | Fri, 15 Oct 2004 14:07:43 +0000 |
| Subject: | Re: add item to end of (multidimensional) array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199596@lists.php.net to get a copy of this message | ||
> You mean like this...
> $sub = array
> (
> 'name' => 'Ahhhhhnold',
> 'address' => '123 Someplace Nice',
> );
>
> $bigArray[] = $sub;
Something else that will work is the following:
$arrPt =& $Arr[];
$arrPt['name'] = 'bob';
$arrPt['address'] = 'wherever';
thnx,
Chris