<?phpclass Calendar { const months = 12; //В версии 8.3 можно //указать тип константы const string PHP = 'PHP 8.3';}$months = Calendar::months;//months is 12echo $months;