【文件属性】:
文件名称:php-ini-get-wrapper:PHP 的 ini_get() 函数的便利包装器
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-21 02:15:27
PHP
用法
require __DIR__ . '/vendor/autoload.php' ;
$ ini = new bantu\ IniGetWrapper \ IniGetWrapper ;
var_dump (
$ ini -> getString ( 'does-not-exist' ),
$ ini -> getString ( 'default_mimetype' ),
$ ini -> getBool ( 'display_errors' ),
$ ini -> getNumeric ( 'precision' ),
$ ini -> getBytes ( 'memory_limit' )
);
NULL
string(9) "text/html"
bool(false)
int(14)
int(134217728)
【文件预览】:
php-ini-get-wrapper-master
----composer.json(540B)
----.travis.yml(458B)
----.scrutinizer.yml(185B)
----tests()
--------IniGetWrapperFake.php(338B)
--------IniGetWrapperFakeTest.php(5KB)
--------IniGetWrapperTest.php(2KB)
----LICENSE(1KB)
----src()
--------IniGetWrapper.php(5KB)
----.gitignore(38B)
----phpunit.xml.dist(361B)
----README.md(1KB)