unset($foo[0]); // remove item at index 0
$foo2 = array_values($foo); // 'reindex' array
More Related Contents:
- How do you reindex an array in PHP but with indexes starting from 1?
- PHP reindex array? [duplicate]
- PHP get index of last inserted item in array
- Re-index numeric array keys [duplicate]
- Perform logic operations on boolean array values
- Problame with files on SQL
- Can I bind an array to an IN() condition in a PDO query?
- PHP Constants Containing Arrays?
- Read each line of txt file to new array element
- Remove all elements from array that do not start with a certain string
- PHP Array Merge two Arrays on same key
- php – How do I fix this illegal offset type error
- Posting multidimensional array with PHP and CURL
- Recursively remove empty elements and subarrays from a multi-dimensional array
- PHP array_filter with arguments
- Unexpected bracket ‘[‘ – PHP [duplicate]
- PHP case-insensitive in_array function
- scandir() to sort by date modified
- Print the keys of an array
- How to delete object from array inside foreach loop?
- mysql select query within a serialized array
- Sort Object in PHP
- Best method for sum two arrays [closed]
- How do i count same values in an array and store it to a variable?
- Chunk and transpose a flat array into rows with a specific number of columns
- PHP – Get key name of array value
- What is the max key size for an array in PHP?
- Sort array by value alphabetically php
- Convert PostgreSQL array to PHP array
- PHP: Most frequent value in array