note 40881 deleted from function.count by nlopess

From: Date: Thu, 18 Mar 2004 13:46:33 +0000
Subject: note 40881 deleted from function.count by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67012@lists.php.net to get a copy of this message
Note Submitter: cparker@NEINSPAMwrack.org ---- didn't find a native php function for this so i made my own. function count_array($input) { return (is_array($input)) ? count($input) : false ; } i had to make this because one of my functions returned an array or false. when it returned false (count(false) == 1) so my check would fail and thus cause an error.

« previous php.notes (#67012) next »