Question: what are enums in php?
Answer: PHP Enums. ... An enumeration type, "enum" for short, is a data type to categorise named values. Enums can be used instead of hard coded strings to represent, for example, the status of a blog post in a structured and typed way. PHP doesn't have a native enum type.