note 114819 deleted from language.types.callable by salathe
| From: | salathe@php.net | Date: | Mon, 15 Sep 2014 07:57:20 +0000 |
| Subject: | note 114819 deleted from language.types.callable by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200445@lists.php.net to get a copy of this message | ||
Note Submitter: raj dot aditya at gmail dot com
----
i did the same thing mentioned above but the following code not working. Why?
---------------------------------------------------------
class Alfa1 {
public static function falfa() {
echo "In Alfa";
}
}
class Beta1 extends Alfa1 {
public static function falfa() {
echo "In Beta";
}
}
call_user_func(array('Beta1','parent::flafa'));
Tested in two latest version of PHP both gives:
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Alfa1' does
not have a method 'flafa' in Xampp\htdocs\a.php on line 15