Re: RE: Remove value from array

From: Date: Wed, 27 Jun 2001 06:38:46 +0000
Subject: Re: RE: Remove value from array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55347@lists.php.net to get a copy of this message
> are you sure it has not been deleted. If you check to see what's in it and > it doesn't exist you'll get the answer that it contains a null value (same > as any other non-exitsant variable). Did you do a foreach to check what is > actually in the array? I believe the behaviour of unset for array values changed between PHP versions. Check the ChangeLog to be sure. Also, search PHP-Dev archives if you want all sorts of gory insider details about why/when/who/what/where changed it, and maybe even a good argument, or at least a couple flames, IIRC :-) Meanwhile, you may want to consider upgrading if it's the older version not behaving like you want... I do think that in at least one version, you get NULL back if you ask for it by key, but it won't show up in a foreach or each... But we're now getting way too specific to trust my memory. I'm a big-picture guy. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#55347) next »