On Wed, Oct 2, 2024 at 10:20 AM Alexandru Pătrănescu <dreal...@gmail.com>
wrote:

>
> One would be able to get only the enums by using something like:
> ```php
> function get_declared_enums_only() {
>     return array_diff(get_declared_classes(), get_declared_enums());
> }
> ```
>
>
Sorry, I somehow got confused, and I meant to say "to get only the class
that are not enums" and it would be like this:
```
function get_declared_class_without_enum() {
    return array_diff(get_declared_classes(), get_declared_enums());
}
```

-- Alex

Reply via email to