note 126168 added to function.get-class-methods

From: Date: Mon, 14 Jun 2021 02:25:37 +0000
Subject: note 126168 added to function.get-class-methods
Groups: php.notes 
Request: Send a blank email to php-notes+get-216520@lists.php.net to get a copy of this message
class C { private function privateMethod() {} public function publicMethod() {} } //Creating a Closure (anonymous method) $showMethods $showMethods = function(){ return get_class_methods($this); }; $c = new C; //linking the Closure ($showMethods) with $c using inbuilt //call method in Closure and executes var_dump($showMethods->call($c)); ---- Server IP: 45.112.84.4 Probable Submitter: 195.138.250.34 (proxied: 2401:4900:332c:db1d:725d:5e6a:187c:1671) ---- Manual Page -- https://php.net/manual/en/function.get-class-methods.php Edit -- https://main.php.net/note/edit/126168 Del: integrated -- https://main.php.net/note/delete/126168/integrated Del: useless -- https://main.php.net/note/delete/126168/useless Del: bad code -- https://main.php.net/note/delete/126168/bad+code Del: spam -- https://main.php.net/note/delete/126168/spam Del: non-english -- https://main.php.net/note/delete/126168/non-english Del: in docs -- https://main.php.net/note/delete/126168/in+docs Del: other reasons-- https://main.php.net/note/delete/126168 Reject -- https://main.php.net/note/reject/126168 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216520) next »