* Thus wrote Jason Giangrande ([EMAIL PROTECTED]):
> Is there a way to delete array fields without resort the keys?  The keys
> of this particular array are the position of the words it holds to their
> position in a string and if they are changed it screws everything up.  I
> tried using array_splice but that, unfortunately, rearranges the keys. 
> So, to reiterate, what I want to do is remove a key from an array but
> not have the keys automatically reassigned.
> 
> Thanks,
> Jason Giangrande

unset($array['item']);

I don't think it rearranges it. perhaps the docs should mention this in
the array section. I only remember unset because of a big discussion
about its behavior a while back.

HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to