note 116648 added to reflectionclass.getmethods

From: Date: Wed, 04 Feb 2015 11:54:32 +0000
Subject: note 116648 added to reflectionclass.getmethods
Groups: php.notes 
Request: Send a blank email to php-notes+get-201589@lists.php.net to get a copy of this message
<?php /** * Array of all class methods. */ class foo { public function __construct() { } private function bar() { } protected function boo() { } } $reflection = new ReflectionClass('foo'); $methods = $reflection->getMethods(); array_walk( $methods, function (&$v) { $v = $v->getName(); } ); var_export($methods); ?> Result: array ( 0 => '__construct', 1 => 'bar', 2 => 'boo', ) ---- Server IP: 72.52.91.14 Probable Submitter: 31.42.50.94 ---- Manual Page -- http://php.net/manual/en/reflectionclass.getmethods.php Edit -- https://master.php.net/note/edit/116648 Del: integrated -- https://master.php.net/note/delete/116648/integrated Del: useless -- https://master.php.net/note/delete/116648/useless Del: bad code -- https://master.php.net/note/delete/116648/bad+code Del: spam -- https://master.php.net/note/delete/116648/spam Del: non-english -- https://master.php.net/note/delete/116648/non-english Del: in docs -- https://master.php.net/note/delete/116648/in+docs Del: other reasons-- https://master.php.net/note/delete/116648 Reject -- https://master.php.net/note/reject/116648 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201589) next »