Hi All, With several functions (`str_contains()`, `str_[starts|ends]_with()`) added for PHP8 to make things more clear, it feels like a good time to revisit the multiple requests to add `get_class_constants(string $class): array`. This would allow userland code to retrieve constants in the same way as properties / methods, instead of having to use reflection for constants and built-in functions for properties / methods. In addition to uniformity, a bit of fiddling shows close to half the time for 10k executions
I'm willing to implement if there's interest (curiosity got the best of me for the aforementioned fiddling) Looking forward to your thoughts, Thanks! Troy McCabe