标签: php arrays
我有一个PHP数组,在array_filter后我的数组以key [2]
array_filter
实施例
$words = " Test1 test2 test3 "; $arrWords = explode("\n", str_replace("\r", '', $words)); $arrWords = array_filter($arrWords);
filter之后重新索引的解决方案是什么?谢谢你
filter