the complexity of array_shift() is O(n). array_shift() requires a re-index process on the array, so it has to run over all the elements and index them.
確定! 回上一頁