Original answer, but costly (O(n)): array_shift(array_values($array));. In O(1): array_pop(array_reverse($array));. Other use cases, etc.
確定! 回上一頁