array_pop() returns the last value of an array and removes that value from the array.
What is the function that does the opposite of array_pop(), i.e. returns and removes the first value of an array?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the php manual:-
I know this is a trivial question but I did a Google search for opposite of array_pop() and nothing popped up, so I thought I’d share the question on here and it might save lots of people about 4 seconds each 🙂