It is possible to create sets of enumeration types in PHP like in Delphi?
I want to create a set of options for a component like [required, readonly, ...]. I've seen PHP and Enumerations but it does not solve my problem completely.
For intance, in Delhpi you can do something like:
type enum_options = (required, readonly, ...); // Enumerated type
options_for_my_component := [required, readonly];
...
if (required in options_for_my_component) then
...
More info at http://www.delphibasics.co.uk/Article.asp?Name=Sets