openlss/func-mda-glob
Composer 安装命令:
composer require openlss/func-mda-glob
包简介
MDA (Multi Dimensional Array) access helpers for PHPs Superglobals
README 文档
README
MDA (Multi Dimensional Array) access helpers for PHPs Superglobals
Usage
$_GET['test'] = 'value'; $v = get('test'); //returns 'value' $v = get('test2'); //returns NULL
Reference
(mixed) get($name=false)
Takes an MDA key and retrieves it from $_GET If $name=false the entirety of $_GET is returned
(mixed) post($name=false)
Same as get() except with $_POST
(mixed) req($name=false)
Same as get() except with $_REQUEST
(mixed) server($name=false)
Same as get() except with $_SERVER
(mixed) session($name,$value=false)
Without $value being passed functions the same as get() except with $_SESSION When a value is passed it will set that value to the key
(bool) session_delete()
Takes an unlimited amount of keys and will unset them
统计信息
- 总下载量: 163
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2013-03-23