+ 1
Construct is not a language, it's a magic method of a class. Whenever class is instantiate(called) the first method that is called is __construct(), you can add parameter to the class using `public function __construct($name){ echo 'hi'. $name;}`and call class as `new className('david');
23rd Dec 2017, 5:09 AM
Animesh
Animesh - avatar