Application scope in php

后端 未结 2 1487
没有蜡笔的小新
没有蜡笔的小新 2021-01-11 18:35

I need to share same array object across all requests irrespective of requests coming from same browser/user. Is there any application scope in php where I could store that

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 19:17

    Some extensions, like APC or Zend Cache allow you to mimic application-scope.
    If none are available to you, you can cache the object in a file or DB.

提交回复
热议问题