note 129926 added to language.oop5.constants

From: Date: Sat, 21 Dec 2024 06:19:31 +0000
Subject: note 129926 added to language.oop5.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-221733@lists.php.net to get a copy of this message
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; } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 39.34.22.220) ---- Manual Page -- https://php.net/manual/en/language.oop5.constants.php Edit -- https://main.php.net/note/edit/129926 Del: integrated -- https://main.php.net/note/delete/129926/integrated Del: useless -- https://main.php.net/note/delete/129926/useless Del: bad code -- https://main.php.net/note/delete/129926/bad+code Del: spam -- https://main.php.net/note/delete/129926/spam Del: non-english -- https://main.php.net/note/delete/129926/non-english Del: in docs -- https://main.php.net/note/delete/129926/in+docs Del: other reasons-- https://main.php.net/note/delete/129926 Reject -- https://main.php.net/note/reject/129926 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221733) next »