Use array_values:
$reindexed_array = array_values($old_array);
More Related Contents:
- how can i passed array into a function in php [closed]
- Needle in a Haystack for Php [closed]
- Multiple inputs with same name through POST in php
- Filter array by its keys using an array of allowed keys
- Count number of values in array with a given value
- PHP Foreach Pass by Reference: Last Element Duplicating? (Bug?) [duplicate]
- Can you store a function in a PHP array?
- Checking to see if one array’s elements are in another array in PHP
- Sort array of objects by one property
- PHP array multiple sort – by value then by key?
- Storing PHP arrays in cookies
- mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object
- Implode a column of values from a two dimensional array [duplicate]
- Checking if all the array items are empty PHP
- Get week number in month from date in PHP?
- Display array values in PHP
- How can I force PHP to use strings for array keys? [duplicate]
- Dynamic array keys
- Convert a String into an Array of Characters
- Remove duplicate items from an array [duplicate]
- Create a comma-separated string from a single column of an array of objects
- How to filter an associative array comparing keys with values in an indexed array?
- Rotate array elements to the left (move first element to last and re-index)
- Grouping arrays in PHP
- Split array into a specific number of chunks
- Concatenate values of n arrays in php
- How to insert json array into mysql database
- Why do I get “Resource id #4” when I apply print_r() to an array in PHP? [duplicate]
- Convert PostgreSQL array to PHP array
- PHP: Most frequent value in array