php-general Digest 11 Dec 2012 06:54:05 -0000 Issue 8061
Topics (messages 319831 through 319831):
Unexpected behavior of max() function
319831 by: "РогÑлин С.Ð."
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin 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
--- End Message ---