PHP 8.5.0 RC 2 available for testing

Voting

: max(one, two)?
(Example: nine)

The Note You're Voting On

marcini
16 years ago
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.

<< Back to user notes page

To Top