class_exists() With Enums

no-email (Jan Nedbal), Jan Nedbal
Thu, 15 Feb 2024 00:00:00 +0000

In PHP, there is:
- ``class_exists()``
- ``trait_exists()``
- ``interface_exists()``
- ``enum_exists()``

What would the code here produce?

This is displaying true. Enumerations are considered as classes, even as they have some limitations compared to normal classes.