class_exists() With Enums¶
In PHP, there are dedicated functions to check the availability of structures:
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 specific limitations and behavior, compared to normal classes.