note 88298 deleted from function.array-rand by danbrown
| From: | danbrown@php.net | Date: | Mon, 19 Jan 2009 17:37:32 +0000 |
| Subject: | note 88298 deleted from function.array-rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149475@lists.php.net to get a copy of this message | ||
Note Submitter: admin at jeremyzaretski dot com
Reason: integrated
----
There is a flaw in my previous post's code causing an error should $count equal zero. The
expression "$count >= 0" should be changed to "$count > 0". This should
return an empty array if the user requests zero items.