PHP中数组的最大大小是多少? [英] What is the maximum size of an array in PHP?

查看:364
本文介绍了PHP中数组的最大大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们喜欢将数据库值存储在数组中.但是我们不知道 PHP 中允许的数组的最大大小?

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

推荐答案

数组的限制没有最大值.您的脚本可以使用的内存量是有限制的.这可以在 php.ini 配置中的memory_limit"中更改.

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.

这篇关于PHP中数组的最大大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆