rde / common
通用函式庫 & 類別庫
v2.0.0
2019-05-09 17:59 UTC
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-12-21 17:27:51 UTC
README
函式庫列表
從陣列中取值
array_get($array, $key[, $callable_or_default]);
陣列迭代器(支援多陣列迭代)
array_each($callback, $array_1[, $array_2[, ...]]);
自訂陣列合併
array_merge_callback(callable $merge_driver, $base_array[, $array_1[, $array_2[, ...]]])
$merge_driver
會收到4個參數,依序是$extend_value
$extend_key
&$base_array
$merge_driver
詳情請參照
- ArrayFunctionsTest::testMergeNumericKey
- ArrayFunctionsTest::testMergeMixedKey
- ArrayFunctionsTest::testMergeMin
- ArrayFunctionsTest::testMergeRecursive