note 32025 added to function.max

From: Date: Tue, 13 May 2003 21:32:09 +0000
Subject: note 32025 added to function.max
Groups: php.notes 
Request: Send a blank email to php-notes+get-47924@lists.php.net to get a copy of this message
Note that in version 4.0.3 (the only version I tested): max (0, 0); // returns 0. max (0, false); // returns 0. max (false, 0); // returns false. max (false, false); // returns false. As a solution use this: (int) max (false, 0); // returns 0. (int) max (false, false); // returns 0. -- http://www.php.net/manual/en/function.max.php http://master.php.net/manage/user-notes.php?action=edit+32025 http://master.php.net/manage/user-notes.php?action=delete+32025 http://master.php.net/manage/user-notes.php?action=reject+32025

« previous php.notes (#47924) next »