php 清除多维数组里面的空值

<?php


$json = '[{"func":[{"32325":[50018,50019,50020]}],"area":[{"39":[169]}],"func_code":[{"G1":["G1-01","G1-02","G1-03",""]}],"area_code":[{"ywlycode":["zdlb_code"]}],"range_code":true}]';
$array = json_decode($json,true);

# print_r($array);

猜你喜欢

转载自blog.csdn.net/weiguang102/article/details/125507514