php super super 全局变量

标签 php php-5.3

我想知道,我有这个大数组,是否可以只在内存中使用一次而不是每个线程一次? 以 stackoverflow 上的标签为例。 他们几乎从不改变,为什么不为他们留下一个内存点呢? 甚至可能将该数组永久保存在内存中?

最佳答案

看看apc_store

Unlike many other mechanisms in PHP, variables stored using apc_store() will persist between requests (until the value is removed from the cache).

关于php super super 全局变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6182312/

相关文章:

php - PDO 将信息从一个数据库插入到另一个数据库

php - mysql 无法在 xampp 上运行

php - mysqli_fetch_assoc() 发出警告,它需要 mysqli_result,但给出了对象

php - 如何获得以微秒为单位的持续时间

php - 在 yii2 中向 GridView 添加一个按钮

javascript - 使用 php 和 ajax 在表中显示查询的值

php - 无法在 Symfony 2 中使用渲染方法找到 Twig 模板

PHP 超长字符串支持

java - 在 Android Studio 中将数据从 MySQL 显示到 TextView

php - 使用 php 5.3 在插入之前检查 MySQL 行中的数据