06-05-2008, 11:45 AM
|
#4 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
php.net/unset
PHP Code:
unset($arr[1]);
The only issue is if I'm not mistaken is, the array will persist with the current numerical order - meaning it'll be something like this
you can use a combination of array_splice/array_merge to properly delete array elements and have them be in correct numerical order.
|
|
|
|