ok I have an array, and i want to unset a key within it.
$arr = array('apples', 'oranges', 'rotten apples', 'pears');
ok say i want to get rid of my rotten apples and i do this.
unset($arr[2]);
it also unsets value above this array key (ie... gets rid of my beautiful pears :mad: :mad: )
so, does anybody know a simple way to 'pop' off a value within the middle of an array? considering that i might have rotten oranges, not just rotten apples......
I dont want to set the key to NULL because this doesnt archieve the result that I want (im spitting out the results to a menu box, then possibly copying them to somewhere on the file system, so to avoid a whole lot of empty() checks later i would prefer to unset the var)
thanks