- var_dump: documentation ( source)
<?php
class A {
var $__row = null;
function A($row) {
$this->__row = $row;
}
}
class B extends A {
var $__module_id;
function B($row, $module_id) {
parent::A($row);
$this->__module_id = $module_id;
}
}
class C extends B {
function C($row) {
parent::B($row, 'common');
}
}
class D extends C {
function D($row) {
parent::B($row, 'something'); // ATTENTION - Here is "::B" not "::C"
}
}
$d = new D('dummy');
var_dump($d);