- phpinfo: documentation ( source)
<?php
phpinfo();
class Father {
public $value;
/**
* Father Controller
*/
public function __construct()
{
$this->value = 123;
}
}
class Child extends Father {
/**
* Child Controller that extend Father
*/
public function __construct($x)
{
parent::__construct();
}
}
$obj = new Child(1);
echo $obj->value;