note 87699 added to function.call-user-method
| From: | david dot jarchovsky at gmail dot com | Date: | Wed, 17 Dec 2008 12:48:03 +0000 |
| Subject: | note 87699 added to function.call-user-method | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148262@lists.php.net to get a copy of this message | ||
It's possible to use this function in case of calling static methods too.
<?php
class example {
public static function b(){
$self = self;
call_user_method('c',$self);
}
public static function c(){
echo "B\n";
}
};
example::b();
?>
----
Server IP: 212.24.129.51
Probable Submitter: 82.142.126.249
----
Manual Page -- http://www.php.net/manual/en/function.call-user-method.php
Edit -- https://master.php.net/note/edit/87699
Del: integrated -- https://master.php.net/note/delete/87699/integrated
Del: useless -- https://master.php.net/note/delete/87699/useless
Del: bad code -- https://master.php.net/note/delete/87699/bad+code
Del: spam -- https://master.php.net/note/delete/87699/spam
Del: non-english -- https://master.php.net/note/delete/87699/non-english
Del: in docs -- https://master.php.net/note/delete/87699/in+docs
Del: other reasons-- https://master.php.net/note/delete/87699
Reject -- https://master.php.net/note/reject/87699
Search -- https://master.php.net/manage/user-notes.php