note 90811 added to function.max
| From: | marcini at osu1 dot php dot net | Date: | Mon, 11 May 2009 14:34:29 +0000 |
| Subject: | note 90811 added to function.max | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154450@lists.php.net to get a copy of this message | ||
Note that max() can compare dates, so if you write something like this:
<?php
$dates = array('2009-02-15', '2009-03-15');
echo max($dates);
?>
you will get: 2009-03-15.
----
Server IP: 194.24.174.91
Probable Submitter: 83.238.211.225
----
Manual Page -- http://www.php.net/manual/en/function.max.php
Edit -- https://master.php.net/note/edit/90811
Del: integrated -- https://master.php.net/note/delete/90811/integrated
Del: useless -- https://master.php.net/note/delete/90811/useless
Del: bad code -- https://master.php.net/note/delete/90811/bad+code
Del: spam -- https://master.php.net/note/delete/90811/spam
Del: non-english -- https://master.php.net/note/delete/90811/non-english
Del: in docs -- https://master.php.net/note/delete/90811/in+docs
Del: other reasons-- https://master.php.net/note/delete/90811
Reject -- https://master.php.net/note/reject/90811
Search -- https://master.php.net/manage/user-notes.php