Reply to Re: Unbelievable, I'm not able to define a two dimensional array

Your name:

Reply:


Posted by Stefan Mueller on 11/18/05 09:36

> $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]

Therefore I thought it's something wrong with my definition of the array.
But it seems that I have to use
echo "Output: " . $myarray[3][5] . "<p>";

That's very strange for my because I always used
echo "Output: $myvariable";
to show the content of a variable and it always worked perfectly except with
arrays.

Stefan

[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

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