note 126686 added to function.method-exists
| From: | "" at prhldchauhan | Date: | Thu, 16 Dec 2021 04:16:08 +0000 |
| Subject: | note 126686 added to function.method-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217375@lists.php.net to get a copy of this message | ||
if u want to use "method_exit" function in diffrent file after including this class ,
then u can't use it directly by "method_exit"
so for this u have to use call_user_func_array to a base function which is available in class
already.
then call function in the following way=>
function check($fun) {
if(method_exists($this, $fun))
{return true;}
else
{return false;}
}
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 203.122.8.42)
----
Manual Page -- https://php.net/manual/en/function.method-exists.php
Edit -- https://main.php.net/note/edit/126686
Del: integrated -- https://main.php.net/note/delete/126686/integrated
Del: useless -- https://main.php.net/note/delete/126686/useless
Del: bad code -- https://main.php.net/note/delete/126686/bad+code
Del: spam -- https://main.php.net/note/delete/126686/spam
Del: non-english -- https://main.php.net/note/delete/126686/non-english
Del: in docs -- https://main.php.net/note/delete/126686/in+docs
Del: other reasons-- https://main.php.net/note/delete/126686
Reject -- https://main.php.net/note/reject/126686
Search -- https://main.php.net/manage/user-notes.php