note 8295 added to count

From: Date: Mon, 04 Sep 2000 16:30:44 +0000
Subject: note 8295 added to count
Groups: php.notes 
Request: Send a blank email to php-notes+get-4132@lists.php.net to get a copy of this message
Has someone thought of the possibility of an array containing only 1 element ?. Because count would then return 1 as if the array wasn't an array. How about returning -1. Seems more to the point anyways. http://www.php.net/manual/function.count.php

« previous php.notes (#4132) next »