Re: Assistance Please - Two-Dimension Arrays
| From: | Christian Reiniger | Date: | Sun, 23 Sep 2001 10:37:44 +0000 |
| Subject: | Re: Assistance Please - Two-Dimension Arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68411@lists.php.net to get a copy of this message | ||
On Sunday 23 September 2001 06:54, Jason G. wrote:
> Mark,
>
> PHP, at this point, does not support MultiDimension arrays. However,
> you can get around this by placing array's inside arrays.
>
> Thus:
>
> $myarray[0] = array("element00", "element01","element02");
> $myarray[1] = array("element10", "element11","element12");
> $myarray[2] = array("element20", "element21","element22");
>
> You would refrence "element11" by
> $myarray[1][1];
Congratulations. You just described a multidimensional array :)
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
"These are the people who proudly call themselves "hackers" --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert."
- ESR