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.