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