Use array_values
.
$myarray = array_values($myarray);
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 get index of last inserted item in array
- Re-index numeric array keys [duplicate]
- PHP multidimensional array search by value
- How to sum all column values in multi-dimensional array?
- How to convert JSON string to array
- Modify array values in foreach loop
- Build a tree from a flat array in PHP
- Convert array of single-element arrays to a one-dimensional array
- Type hinting – specify an array of objects
- Convert an associative array to a simple array of its values in php
- CSV to Associative Array
- Check if a specific value exists at a specific key in any subarray of a multidimensional array
- How to pass an array via $_GET in php?
- Move an array element to a new index in PHP
- How can I employ “if exists” for creating or dropping an index in MySQL?
- Convert PHP array string into an array
- Reorganize array in twig
- Case-insensitive array search
- PHP array printing using a loop
- PHP 5.3.10 vs PHP 5.5.3 syntax error unexpected ‘[‘
- Access an Array Returned by a Function [duplicate]
- Compare two array and get all differences
- Get count of each unique value in one column of a 2d array
- Does array_unique() modify its array by reference?
- Merge 2d array rows with same column value and sum another column [duplicate]
- PHP get the last 3 elements of an associative array while preserving the keys?
- How to send the values of an array of checkboxes through Ajax using jQuery?
- Twig for loop for arrays with keys