php 过滤多维数组中值为空的字段
摘要:function filter_array($arr, $values = ['',[]]){ foreach ($arr as $k => $v) { if (is_array($v) && count($v)>0) { $arr[$k] = filter_array($v, $values);
阅读全文
posted @ 2021-12-07 10:53
posted @ 2021-12-07 10:53