piscc / upperscore
PHP 通用函数
1.0.9
2016-09-12 13:30 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.0.*
README
upperscore
PHP 通用函数
安装
$ composer require pisc/upperscore
如何使用
PHP 版本 >= 5.6
use function pisc\upperscore\arrayFlatten; $flat = arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);
PHP 版本 < 5.6
use pisc\upperscore as u; $flat = u\arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);
运行测试
$ ./phpunit.sh