文件名称:priority-array-merge:优先合并数组
文件大小:11KB
文件格式:ZIP
更新时间:2024-07-21 12:29:09
PHP
优先合并数组 此库可帮助您合并两个具有键优先级的数组 <?php $ mergeManager = new PriorityArray (); $ first = [ 'companyId' => 0 , 'companyCode' => 1 , 'companyName' => 1 , ]; $ second = [ 'companyId' => 1 , 'companyCode' => 0 , 'companyName' => 0 , ]; $ mergeManager -> setMapPriority ( $ first , $ second ); $ arr1 = [ 'companyId' => '012' , 'companyCode' => 'B353sf' , 'companyName' => '
【文件预览】:
priority-array-merge-master
----.gitignore(7B)
----src()
--------GianArb()
----.travis.yml(169B)
----LICENSE(1KB)
----composer.json(638B)
----composer.lock(35KB)
----README.md(1KB)
----tests()
--------GianArb()
----benchmarks()
--------GianArb()
----phpunit.xml.dist(516B)