Bug #15268: remove a 2 dimension array and the problem on array count

From: Date: Tue, 29 Jan 2002 05:33:15 +0000
Subject: Bug #15268: remove a 2 dimension array and the problem on array count
Groups: php.dev 
Request: Send a blank email to php-dev+get-78417@lists.php.net to get a copy of this message
From: desaloo@yahoo.com Operating system: window NT PHP version: 4.0.6 PHP Bug Type: Arrays related Bug description: remove a 2 dimension array and the problem on array count hello : i have a problem on remove 2 dimension array in which the count of array still is same as before the array was remove. example: $e[0][0] = "aaa"; $e[0][1] = "bbb"; $e[1][0] = "111"; $e[1][1] = "222"; count(array) is equal to 2, then i try to remove an element of that array using unset : unset($e[1][0]); unset($e[1][1]); then i try to retrieve the count of array again, the result should be 1, but what i get from it is the count of the array is still not change, which it : echo count($e); //result is 2 i have been try this for single dimension array, there is no such problem on it, just the 2 dimension array will face this kind of problem. thank you !! -- Edit bug report at: http://bugs.php.net/?id=15268&edit=1

« previous php.dev (#78417) next »