What is the maximum size of an array in PHP?

匿名 (未验证) 提交于 2019-12-03 02:13:02

问题:

We like to store database values in array. But we do not know the maximum size of an array which is allowed in PHP?

回答1:

There is no max on the limit of an array. There is a limit on the amount of memory your script can use. This can be changed in the 'memory_limit' in your php.ini configuration.



回答2:

Array size is limited only by amount of memory your server has. If your array gets too big, you will get "out of memory" error.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!