You are here: Re: Multi-Dimensional Arrays In PHP ... ??? « PHP Programming Language « IT news, forums, messages
Re: Multi-Dimensional Arrays In PHP ... ???

Posted by Sandman on 07/25/06 09:31

In article <Pnexg.61535$gN5.51649@fe10.usenetserver.com>,
"David T. Ashley" <dta@e3ft.com> wrote:

> Hi,
>
> Aside from the obvious recursive syntax for initialization,
>
> $x = array( ... array( ...)),
>
> what is the best way to deal with multi-dimensional arrays in PHP?
>
> It seems there is no syntax like $x[i][j][k]???

Of course there is.


<?
$monkey["foo"]["bar"]["oof"]["rab"] = "foobar";
print_r($monkey);
?>

Output:
Array
(
[foo] => Array
(
[bar] => Array
(
[oof] => Array
(
[rab] => foobar
)

)

)

)



--
Sandman[.net]

 

Navigation:

[Reply to this 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

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