note 111236 added to function.min

From: Date: Tue, 29 Jan 2013 20:07:17 +0000
Subject: note 111236 added to function.min
Groups: php.notes 
Request: Send a blank email to php-notes+get-193427@lists.php.net to get a copy of this message
Remember that INF is by definition larger than any number. This is useful for ensuring that an array passed to min() has at least one element (the function doesn't like empty arrays), and for keeping running minima (it provides a starting value that is guaranteed to be replaced by the first value in the sequence). PHP_INT_MAX works if the numbers are all less than PHP_INT_MAX, but most doubles aren't. ---- Server IP: 69.147.83.199 Probable Submitter: 122.57.198.66 ---- Manual Page -- http://php.net/manual/en/function.min.php Edit -- https://master.php.net/note/edit/111236 Del: integrated -- https://master.php.net/note/delete/111236/integrated Del: useless -- https://master.php.net/note/delete/111236/useless Del: bad code -- https://master.php.net/note/delete/111236/bad+code Del: spam -- https://master.php.net/note/delete/111236/spam Del: non-english -- https://master.php.net/note/delete/111236/non-english Del: in docs -- https://master.php.net/note/delete/111236/in+docs Del: other reasons-- https://master.php.net/note/delete/111236 Reject -- https://master.php.net/note/reject/111236 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193427) next »