note 34166 deleted from function.count by didou

From: Date: Wed, 15 Oct 2003 17:31:29 +0000
Subject: note 34166 deleted from function.count by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58654@lists.php.net to get a copy of this message
Note Submitter: Griggs Domler ---- count() has a second argument not listed here, [int mode], that will count the array recursively. $arr = array(range(1,10),'string'); echo count($arr,true); == 12 echo count($arr,false); == 2 There seems to be no limit on how deep this will recurse. This option was added in version 4.2.0.

« previous php.notes (#58654) next »