note 80719 added to function.min
| From: | johngreenbury at australianescapes dot com dot au | Date: | Wed, 30 Jan 2008 01:43:01 +0000 |
| Subject: | note 80719 added to function.min | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135575@lists.php.net to get a copy of this message | ||
You will get an "Wrong parameter count" error (PHP 4 and possibly 5) if your array looks
like the following:
min(115.23,432.11,0.00,45.76)
The 0.00 creates the error. Convert the 0.00 to a high number such as 10000000000.00 or remove it
from the array before running the min() function.
----
Server IP: 203.220.0.234
Probable Submitter: 203.87.71.230
----
Manual Page -- http://www.php.net/manual/en/function.min.php
Edit -- https://master.php.net/note/edit/80719
Del: integrated -- https://master.php.net/note/delete/80719/integrated
Del: useless -- https://master.php.net/note/delete/80719/useless
Del: bad code -- https://master.php.net/note/delete/80719/bad+code
Del: spam -- https://master.php.net/note/delete/80719/spam
Del: non-english -- https://master.php.net/note/delete/80719/non-english
Del: in docs -- https://master.php.net/note/delete/80719/in+docs
Del: other reasons-- https://master.php.net/note/delete/80719
Reject -- https://master.php.net/note/reject/80719
Search -- https://master.php.net/manage/user-notes.php