- var_dump: documentation ( source)
<?php
class GrandParent { public function __construct($foo) { var_dump($foo); } }
//class Parentx extends GrandParent { public function __construct($foo) { var_dump(__CLASS__); parent::__construct($foo); } }
class Parentx extends GrandParent { }
class Child extends Parentx { public function __construct() { parent::__construct('test'); } }
$child = new Child();