Please help - what is wrong with this code

<?php class Autos { var $bike; var $cost; function getauto_info() { echo $this->bike."
"; echo $this->cost."
"; } function __contruct($par1, $par2) { $this->bike = $par1; $this->cost = $par2; } } $mahesh_autos = new Autos("yamaha", 50); $mahesh_autos->getauto_info(); ?>

There is a typo in your constructor

Sponsor our Newsletter | Privacy Policy | Terms of Service