我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

具有固定值的PHP数组

can anybody tell me with example. is there a way to permanently(or till we restart the server) store variables in php array.

I have heard of static array & global variables kind of things, but i cant get them together.

$storearray = array();
array_push($storearray, "apple", "ball"); 
//in 30mins
array_push($storearray, "land", "band");
//in 1 hour
array_push($storearray, "bland", "aband");

when i chk the array i want all the elements to be there

Use a DATABASE:

example: MYSQL

近期文章

  • 如何在PHP中解析CSV文件
  • PHP - 无法理解此代码。 [关闭]
  • 在html页面中添加背景音乐[重复]
  • 如何使用json数组传递数据?
  • 网站需要40到60秒才能加载页面
  • SQL INSERT提供“无效查询:未知列”
  • 解析dataorg.json.JSONException时出错:java.lang.String类型的值<br无法转换为JSONObject
  • 如何将主文件中写入的函数调用到php和jquery中的ajax文件中
  • PHP,奇怪的错误[重复]
  • 在PHP中选择数组元素
  • PHP IF((X)||(X && Y))声明[关闭]
  • 我在php&html中
  • 回显数组值
  • 在这种情况下如何使用REGEX? [关闭]
  • php通知未定义索引会话[重复]
  • 将整个HTML从网页发布到PHP [重复]
  • Kohana提供的参数无效
  • 在php中显示MySql数据库错误[重复]
  • 输入表单检查$ _POST或$ _GET数组[关闭]
  • 我如何编辑magento的主页

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华