note 16100 added to function.min
| From: | aulbach at unter dot franken dot de | Date: | Tue, 16 Oct 2001 15:19:09 +0000 |
| Subject: | note 16100 added to function.min | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18983@lists.php.net to get a copy of this message | ||
The following code is equivalent:
$a=$b; if ($a>10) $a=10;
and
$a=min($b,10);
--
http://www.php.net/manual/en/function.min.php
http://master.php.net/manage/user-notes.php?action=edit+16100
http://master.php.net/manage/user-notes.php?action=delete+16100
http://master.php.net/manage/user-notes.php?action=reject+16100