Is there any way to have an array with items like:
$array[1];
$array[3];
$array[4];
Be turned into an array like this:
$array[1];
$array[2];
$array[3];
So that the array has only sequential numeric keys? Thanks!
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.
array_values()returns all the values from the input array and indexes numerically the array.