PHP 8.5.0 Beta 1 available for testing

Voting

: min(four, zero)?
(Example: nine)

The Note You're Voting On

kuzawinski dot marcin at gmail dot com
10 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