note 23066 added to function.min
| From: | php-general at lists dot php dot net | Date: | Mon, 08 Jul 2002 18:36:16 +0000 |
| Subject: | note 23066 added to function.min | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32750@lists.php.net to get a copy of this message | ||
Re: above example - for a proper drop in replacement for the above, insert
if ( ! is_array($numarray) )
$numarray = func_get_args();
after
$min=0;
(For PHP3, check
if (intval(PHP_VERSION) >= 4 && ! is_array($numarray))
$numarray = func_get_args();
)
--
http://www.php.net/manual/en/function.min.php
http://master.php.net/manage/user-notes.php?action=edit+23066
http://master.php.net/manage/user-notes.php?action=delete+23066
http://master.php.net/manage/user-notes.php?action=reject+23066