PHP 8.4.24 Released!

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

AamirSohailKmAs at gmail dot com
1 year ago
Note

as of PHP 8.3, it is possible to define Typed class constants.
RFC: https://wiki.php.net/rfc/typed_class_constants

<?php

class Example {
    public const string NAME = "Aamir";
    public const int  MAX    = 100;
}

?>

<< Back to user notes page

To Top