View Single Post
Old 06-05-2008, 11:45 AM   #4 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

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

PHP Code:
$arr[0]
$arr[2
you can use a combination of array_splice/array_merge to properly delete array elements and have them be in correct numerical order.
Enfernikus is offline  
Reply With Quote
The Following User Says Thank You to Enfernikus For This Useful Post:
Dave (06-05-2008)