note 35604 deleted from function.max by ali

From: Date: Mon, 08 Sep 2003 08:02:37 +0000
Subject: note 35604 deleted from function.max by ali
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55780@lists.php.net to get a copy of this message
Note Submitter: romik@aha.ru ---- I am very sorry, but there is mistake in my previous comment. There must be three equal signs in the code if ($var===strval(intval($var))) $var=intval($var); With 2 equal signs it will convert empty string "" to zero 0 I beg my pardon for this. Also, I have to say that is not behavior of only max() function, it is common for PHP then it comparing variables of different types.

« previous php.notes (#55780) next »