
PHP 8.1 will finally add language support for enums. Enums, short for enumerations, are types which can only be instantiated with specific values. They’re commonly found in other object-oriented languages but have previously required userland workarounds to implement in PHP.
0 Response to How to Use Enums in PHP 8.1
Post a Comment