I am currently working on a project in PHP where I need to represent flags or perform bitwise operations. I was wondering if it is possible to use an enumeration for this purpose in PHP.
I want to create a set of options that I can easily combine or check against with bitwise operations. In other languages, I have used enumerations to achieve this, but I'm not sure if PHP supports this feature.
If anyone has experience with this or has any alternative solutions, I would greatly appreciate your input. Thank you in advance for your help!