PHP remove the first index of an array and re-index
Posted
by Mithun
on Stack Overflow
See other posts from Stack Overflow
or by Mithun
Published on 2010-06-09T05:23:14Z
Indexed on
2010/06/09
5:32 UTC
Read the original article
Hit count: 178
I have an array like Array
(
[0] => A
[2] => B
[4] => C
[6] => D
)
I want to remove the first element and then re-index array to get the output
(
[0] => B
[1] => C
[2] => D
)
Which PHP function i need to use?
© Stack Overflow or respective owner