Reply to Re: Multi-Dimensional Arrays In PHP ... ???

Your name:

Reply:


Posted by David T. Ashley on 07/25/06 16:11

"Erwin Moller"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote in
message news:44c5d84f$0$31653$e4fe514c@news.xs4all.nl...

> David T. Ashley wrote:
>>
>> It seems there is no syntax like $x[i][j][k]???
>
> Yes there is.

OK, all questions answered, thanks. In the online documentation, it seemed
to suggest that only way to generate a multi-dimensional array was something
like:

$sub1 = array("apples", "oranges", "bananas", 2*82, 3.1415);
$sub2 = array(24, 57, 91);

$array[0] = $sub1;
$array[1] = $sub2;

This will work, but is awkward.

So, if then

echo $array[0][1];

will give "oranges", then I'm happy.

The syntax is there in the language. Thanks.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация