<?php
class Employee
{
public $empId=0;
public $empName=0;
function __construct($eid,$ename) //parameterized constructor
{
$this->empId=$eid;
$this->empName=$ename;
}
function printEmpDetails() //default function with no arguement.
{
echo "Emp Id= this->empId";
echo "EmpName= this->empName";
}
} // end of class
$e1= new Employee(102,'john');
$e1->printEmpDetails();
?>