Create Object and get its type
<?php
class employee {
var $emp_code;
var $name;
var $address;
var $department;
var $sex;
var $date_of_birth;
var $salary;
}
$dave = new employee;
$alice = new employee;
echo gettype ($dave)," \n";
echo gettype ($alice), " \n";
?>
Related examples in the same category