note 27963 deleted from function.max by didou
| From: | didou@php.net | Date: | Wed, 23 Jul 2003 01:25:46 +0000 |
| Subject: | note 27963 deleted from function.max by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52477@lists.php.net to get a copy of this message | ||
Note Submitter: xs2jrr@xs4all.nl
----
What simon at esoft dot dk is saying is not true. max() accepts 3 types of arguments: int, float and
string. If none of the arguments has float as type, all arguments are converted to int. So
max(false, 0) is the same as max(0, 0), which ofcourse returns 0. 0 == false, so you might think it
is false. But 0 !== false, which means 0 is the maximal value of max(false, 0)!