Define a class with a constructor

*************************
class aClassName
{
    private $attribute;

    function __construct ($param) {
	$this->attribute = $param;
    }
    function getAttribute(){
	return $this->attribute;
    }
}

$a = new aClassName("value1");
$b = new aClassName("value2");

echo $a->getAttribute();
echo $b->getAttribute();
*************************
attribute = $param; } function getAttribute(){ return $this->attribute; } } $a = new aClassName("value1"); $b = new aClassName("value2"); echo $a->getAttribute(); echo $b->getAttribute(); ?>