array commits broke something
| From: | Jan Schneider | Date: | Thu, 01 Aug 2002 15:58:47 +0000 |
| Subject: | array commits broke something | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86425@lists.php.net to get a copy of this message | ||
Hi,
the recent changes in the array code broke something. array_pop() doesn't
decrease the key counter.
Let's say your have an array('one', 'two', 'three') and run
array_pop() on
it, then push another value so that you now have array('one', 'two',
'four')
the key of the last value will be 3, not 2 as it should be.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft