note 8942 deleted from min by jeroen
| From: | jeroen@php.net | Date: | Wed, 15 Aug 2001 22:15:23 +0000 |
| Subject: | note 8942 deleted from min by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16779@lists.php.net to get a copy of this message | ||
Indeed, sometimes function min returns some unpredictable result, but just because of data types.
Just some minutes ago i'd wondered why min(4000, 1000) = 4000 well, the problem was that i
called the function like min("4000", 1000),
and a simple 0+"4000" was enough.
Variable type in php is sometimes tricky, isn't it ? Not as simple as in C :-)