note 38514 deleted from keyword.paamayim-nekudotayim by didou
| From: | didou@php.net | Date: | Thu, 25 Dec 2003 10:14:58 +0000 |
| Subject: | note 38514 deleted from keyword.paamayim-nekudotayim by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62446@lists.php.net to get a copy of this message | ||
Note Submitter: methodus_at_web_dot_de
----
similar to wikiz at studentas dot lt's note $this wont work if youre calling classmethods with
:: within the same class
but it will work when you'll call a parent function using ::
<?PHP
class a {
var $var;
function check(){
$this->var = 10;
echo $this->var;
return;
}
}
class b extends a {
function check(){
$this->var = 15;
a::check();
return;
}
}
$b = &new b;
$b->check();
// returns 10
?>
this is not mentioned in the docs!