keyper:数组具有键时执行某些操作

时间:2021-05-07 15:31:59
【文件属性】:
文件名称:keyper:数组具有键时执行某些操作
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-07 15:31:59
PHP 键控器 数组具有键时执行操作 用法 $ data = [ 'key1' => 'hello' , 'nested' => [ 'one' => 1 , 'two' => 2 , 'three' => [ 'four' => 5 ] ] ]; $ keyper = Keyper :: create ( $ data ); //do something with a single value $ keyper -> when ( 'key1' , function ( $ value ) { //$value == 'hello' print $ value ; }); //drill down a nested array $ keyper -> when ( '
【文件预览】:
keyper-master
----src()
--------Vnn()
----.travis.yml(249B)
----test()
--------Vnn()
--------bootstrap.php(150B)
----phpunit.xml(550B)
----README.md(1KB)
----.gitignore(34B)
----composer.json(573B)

网友评论