时间:2021-07-01 10:21:17 帮助过:18人阅读
public function setArraytoZero(&$array) { foreach ($array as &$value){ if(is_array($value)) { $this->setArraytoZero($value); } else { $value = 0; } } }