Re: Proposal for RFC: get_class_constants()

From: Date: Sat, 14 Dec 2013 16:32:54 +0000
Subject: Re: Proposal for RFC: get_class_constants()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70640@lists.php.net to get a copy of this message
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)

« previous php.internals (#70640) next »