需求是一个源数据按配置映射成目标数组,简单满足 <?php function array_loop_value(array $arr, string $key, $merge = false) { if (isset($arr[$key])) { return $arr[$key]; } $keys = explode('.', $...
Read More需求是一个源数据按配置映射成目标数组,简单满足 <?php function array_loop_value(array $arr, string $key, $merge = false) { if (isset($arr[$key])) { return $arr[$key]; } $keys = explode('.', $...
Read More