You are here: Re: Unbelievable, I'm not able to define a two dimensional array « All PHP « IT news, forums, messages
Re: Unbelievable, I'm not able to define a two dimensional array

Posted by Etienne Marais on 11/18/05 15:20

Stefan Mueller wrote:

>> $myarray[3][5] = "Text 1";
>> $myarray[3][6] = "Text 2";
>>
>> is perfectly valid.
>
> You are rigth, it's working. My problem was that the output command was
> wrong.
> I used
> echo "Output: $myarray[3][5]<p>";
> and this showed me
> Output: Array[5]

Consider print_r for structures, eg. print_r($myarray)
during development and debugging.

Etienne Marais

 

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

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