PHP去除数组中的 0

admin1年前 (2024-12-15)17183
1. 使用array_filter()函数$array = [1, 0, 2, 0, 3, 0]; $array = array_filter($a…