<?php
class Test{
function __construct(){
print("in parent");
}
}
class MyTest extends Test{
function __construct(){
parent::construct();
print("in child");
}
}
$parent = new Test();
$child = new MyTest();
?>
in parent
Fatal error: Uncaught Error: Call to undefined method Test::construct() in /in/1osYq:14
Stack trace:
#0 /in/1osYq(20): MyTest->__construct()
#1 {main}
thrown in /in/1osYq on line 14
Process exited with code 255.