Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/get_class_methods_003.phpt |
--TEST-- get_class_methods(): Testing scope --FILE-- <?php interface I { function aa(); function bb(); static function cc(); } class X { public function a() { } protected function b() { } private function c() { } static public function static_a() { } static protected function static_b() { } static private function static_c() { } } class Y extends X implements I { public function aa() { } public function bb() { } static function cc() { } public function __construct() { var_dump(get_class_methods('I')); var_dump(get_class_methods('Y')); var_dump(get_class_methods('X')); } public function __destruct() { } } new Y; ?> --EXPECT-- array(3) { [0]=> string(2) "aa" [1]=> string(2) "bb" [2]=> string(2) "cc" } array(9) { [0]=> string(2) "aa" [1]=> string(2) "bb" [2]=> string(2) "cc" [3]=> string(11) "__construct" [4]=> string(10) "__destruct" [5]=> string(1) "a" [6]=> string(1) "b" [7]=> string(8) "static_a" [8]=> string(8) "static_b" } array(4) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(8) "static_a" [3]=> string(8) "static_b" }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare