Unexpected behavior of max() function

From: Date: Tue, 11 Dec 2012 06:48:56 +0000
Subject: Unexpected behavior of max() function
Groups: php.general 
Request: Send a blank email to php-general+get-319831@lists.php.net to get a copy of this message
Hi, dear subscribers. I encountered with unexpected behavior of max() function. When i pass a parameter ['100', '110,453351020813', '9'], this function gives answer '9' var_dump( max(array('100', '110,453351020813', '9')) ); // will output: // string(1) "9" I can`t understand this behaviour. Please explain this behavior. PHP 5.4.7 on FreeBSD 9.0-RELEASE-p4 amd64 P.S. Sorry for my english :( -- ---------------------------- With best regards, Sergey Rogulin

« previous php.general (#319831) next »