报告用作数组索引将元素追加到数组的 count($array) 调用:$array[count($array)] = 42。 在此类情况下,建议改用中括号语法 ($array[] = 42),这样不会增加调用函数的开销。