$your_new_array = array_values($your_old_array);
More Related Contents:
- How do you reindex an array in PHP but with indexes starting from 1?
- How to Remove Array Element and Then Re-Index Array?
- PHP reindex array? [duplicate]
- PHP get index of last inserted item in array
- Sum up array values [closed]
- Is there any array function by which I can get the expected result? [duplicate]
- How can I sort arrays and data in PHP?
- Convert a PHP object to an associative array
- PHP in_array() / array_search() odd behaviour
- PHP Array to JSON Array using json_encode(); [duplicate]
- How can I check if an array contains a specific value in php?
- How to reindex an array?
- PHP list all files in directory [duplicate]
- How to sort a multidimensional array by a certain key?
- How to sort an array of UTF-8 strings?
- Casting an Array with Numeric Keys as an Object
- How to split a long string without breaking words?
- How to trim white spaces of array values in php
- What’s the difference between array_merge and array + array? [duplicate]
- PHP: do arrays have a maximum size?
- How do I use array_unique on an array of arrays?
- Sort multidimensional array by date column, then use other column values if dates are the same
- Get date range between two dates excluding weekends
- PHP merge arrays by value
- Find number which is greater than or equal to N in an array
- php split array into smaller even arrays
- PHP array replace after matching value [duplicate]
- MySQL query using an array [duplicate]
- PHP get previous array element knowing current array key
- PHP Spread Syntax in Array Declaration