note 4182 deleted from min by jeroen
| From: | jeroen@php.net | Date: | Wed, 15 Aug 2001 22:15:55 +0000 |
| Subject: | note 4182 deleted from min by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16781@lists.php.net to get a copy of this message | ||
Make sure that your parameters have the same type.
Example:
<pre>
list($max)= mysql_fetch_array(....
/* $max is now 6 */
$min= 50;
$fisk= min($min,$max);
</pre>
$fisk is now 50, because $max is a string and '50' < '6'.
Simply use min($min,$max+0)instead.