note 17832 deleted from function.count by jimw

From: Date: Wed, 02 Jan 2002 11:12:42 +0000
Subject: note 17832 deleted from function.count by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24207@lists.php.net to get a copy of this message
BE CAREFUL! when you execute fonction array_splice() to delete a line of an array, if the line is the last one of this array, count() fonction on this returned array will return value 1 and not 0 !! e.g.: $broum[] = "broum"; echo count($broum); // will output "1". $broum = array_splice($broum,0,1); echo count($broum); // will output "1" !!! So be careful...

« previous php.notes (#24207) next »