PHP __construct() May 23, 2012 Pramod T P It creates a new SimpleXMLElement object. Example <?php class PHPCode { function __construct() { print “Inside constructor”; } } $phpObj = new PHPCode(); ?> Output Inside constructor