Comment by egeozcan
13 hours ago
> If you really do need the first element, you can use array_first
That probably needs an array_second too, doesn't it? Maybe array_second_from_last as well?
13 hours ago
> If you really do need the first element, you can use array_first
That probably needs an array_second too, doesn't it? Maybe array_second_from_last as well?
That's foolish. It would clearly be named `second_array_element`.
Just use array_values() and suddenly you can use int indicies again.