Re: 2D array
| From: | Georges da Mata Claessen | Date: | Tue, 12 Dec 2000 12:46:19 +0000 |
| Subject: | Re: 2D array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29873@lists.php.net to get a copy of this message | ||
Thanks, the thing I was looking for is like this
$georges = array(array());
Soeren Staun-Pedersen wrote:
> > How can I create a two dimensional array?? Example I want to create an
> > generic 7x3 array that will be populated later...
> >
>
> $a=array(array(1,2,3),array(4,5,6),array(7,8,9));
>
> or
>
> $a=array();
>
> $a[]=array(1,2,3);
> $a[]=array(4,5,6);
> $a[]=array(7,8,9);
>
> Or associative multi:
>
> $a["foo"]=>array(...);
>
> etc.
>
> Regards,
>
> Soeren Staun-Pedersen - staun@netwarriors.org
> ------
> "The internet is full, beat it"
> - Me.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net