You can call a method from a parent class like this:
<?php
class something{
public $a = 'test';
public function showthis(){
echo 'Put your code here';
}
}
class dosomethingelse extends something{
public function show(){
parent::showthis();
}
}
$do = new dosomethingelse;
$do->showthis();
?>
Output
Put your code here
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)

» Latest comments