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;
}
?>