Re: Proposal for RFC: get_class_constants()
2013.12.14. 1:29, "Stefan Neufeind" <neufeind@php.net> ezt írta:
>
> Hi,
>
> following the howto for RFCs and since this would be my first one, I'd
> like to ask for your thoughts if such an RFC might find approval. If
> yes, I'll be happy to work on it.
>
> Proposal: Create a function get_class_constants()
>
> It would be similar to get_class_methods() and get_class_vars().
>
> Currently the same behavious is only possible by the help of reflection,
> which due to the nature of reflection takes a bit more work/cpu-cycles.
>
> $reflection = new \ReflectionClass($class);
> $constants = $reflection->getConstants();
>
>
> Kind regards,
> Stefan
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Please go for it!
Thread (14 messages)