Plea show me the error of this file.

When this php runs, nothing happen. But there should be printed lines. plea help!

<?php class Student { function _construct() { Print ("**Calling the constructor**
"); $this->name = $name; } function getname() { return $this->name; } function _destruct() { print"**Calling the destructor**
"; } private $name; } $Kamal = new Student("Kamal"); print $Kamal->getname()."
"; ?>
Constructors and destructors are prepended with two underscores, not one ;)

This is no tutorial btw, moved to General.

Sponsor our Newsletter | Privacy Policy | Terms of Service