PHP 8.4.24 Released!

Voting

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

The Note You're Voting On

kuzawinski dot marcin at gmail dot com
11 years ago
As of PHP 5.6 you can finally define constant using math expressions, like this one:

<?php

class MyTimer {
    const SEC_PER_DAY = 60 * 60 * 24;
}

?>

Me happy :)

<< Back to user notes page

To Top