Easiest way would be to put them into a new array either via a loop, or better yet array_values
function.
$new_array = array_values($original_array)
More Related Contents:
- Remove duplicate items from an array [duplicate]
- How do I use array_unique on an array of arrays?
- array_unique vs array_flip
- Does array_unique() modify its array by reference?
- inserting information and image in php and mysql
- CodeIgniter – foreach loop
- Project Links do not work on Wamp Server
- How to save a PNG image server-side, from a base64 data URI
- PHP Warning: PHP Startup: Unable to load dynamic library
- Using sessions & session variables in a PHP Login Script
- How do I make this preg_match case insensitive?
- PHP session side-effect warning with global variables as a source of data
- Coalesce function for PHP?
- Is it necessary to declare PHP array before adding values with []?
- Getting HTTP code in PHP using curl
- PHP Header Redirect in a new window?
- Asynchronous Function Call in PHP
- Redirect after Login on WordPress
- Fatal error: Call to undefined function imap_open() in PHP
- mysqli query results to show all rows
- Fatal error: Declaration of .. must be compatible with .. PHP
- How can I echo the whole content of a .html file in PHP?
- Get a PHP DateTime difference in days, considering midnight as a day change
- How to iterate through a nested stdClass? [duplicate]
- Does PHP’s $_REQUEST method have a security problem?
- Routing URLs in PHP
- PHP loop; how to print each result and delay it for a second before echoing another result?
- Why are escape characters being added to the value of the hidden input
- How to generate random password with PHP?
- Laravel 5 get view name