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

Posted by Stefan Mueller on 11/18/05 03:19

I'd like to define a two dimensional array in PHP so I can use it later
like:
$myarray[3][5] = "Text 1";
$myarray[3][6] = "Text 2";

In JavaScript I would define it like:
var myarray = new Array(1000);

for (var i = 0; i < myarray.length; i++) {
myarray[i] = new Array(20);
}

I've read so many articles on the internet but I'm still not able to define
a two dimensional array within PHP.
Stefan

 

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

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