Code Snippets Php

class Details
{
var $property1;
var $property2;
function display($name, $age)
{
print "Your name is : $name
";
print "Your age is: $age
";
}
}
$obj = &new Details;
$obj->name = 'programmer';
$obj->age = '22';
$obj->display($obj->name, $obj->age);
?>