fork download
  1. <?php
  2.  
  3. class test{
  4.  
  5. public $chief;
  6.  
  7. public function __construct ($pst){
  8. $this->chief = $pst;
  9. }
  10. }
  11.  
  12. class huest extends test{
  13.  
  14.  
  15. }
  16.  
  17. $test = new huest(true);
  18. var_dump($test);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
object(huest)#1 (1) {
  ["chief"]=>
  bool(true)
}