note 91941 deleted from function.min by danbrown

From: Date: Thu, 02 Jul 2009 12:33:39 +0000
Subject: note 91941 deleted from function.min by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157815@lists.php.net to get a copy of this message
Note Submitter: Nitrogen ---- In response to Andrew, below.. This document also says "but still return the string if it's seen as the numerically lowest value." Whilst your example code compares two strings, the characters are the same until it reads '0' and '2' at offset 6.. 0 is the minimum of the two of course, so it'll return that string. min() and max() can read mixed types, not just integers. Thanks, Nitrogen.

« previous php.notes (#157815) next »