|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-11 02:15 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 16:00:01 2025 UTC |
Description: ------------ I was just thinking it might be nice to add an additional argument to the get_class_* functions which takes a bit mask of the T_PRIVATE, T_STATIC etc token constants to define what information you want returned (i.e. only return static public methods) - Davey Reproduce code: --------------- <?php class foo { private function bar() { } public function baz() { } static public function bat { } protected function qux { } } var_dump(get_class_methods('foo', T_STATIC & T_PUBLIC)); Expected result: ---------------- array { [1] => 'bat' }