Reply to Re: multidimensional array declaration in php

Your name:

Reply:


Posted by Jerry Stuckle on 07/16/06 00:12

vito wrote:
>>Well, in this case you're trying to initialize 10,000 * 10,000 arrays,
>>each with an integer. On a 32 bit system that's something like
>>400,000,000 bytes (close to 400 mb) of storage plus the overhead of the
>>arrays themselves. Probably a bit more than you have available - the
>>default is around 8M.
>>
>>Why would you ever try to initialize this much memory (in either PHP or
>>C/C++) anyway?
>>
>
>
> Indeed, i just hope to make an array of a[10000][3] and then can be used
> later. i'd be glad if you could tell me how to initialize such an array.
> Thanks.
>
>

OK, here's a good place to start with arrays:

http://us3.php.net/manual/en/language.types.array.php

However, I still fail to see why you need to define 30K elements.
That's an awful lot for a PHP routine. But you know more about what
you're doing.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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