Define a class with access modifiers
*************************
class ClassName{
    private $attribute;
    
    public function getAttribute() { 
	return $this->attribute; 
    }
    
    public function setAttribute ($value){
	$this->attribute = $value;
    }
}
$g=new ClassName();
$g->setAttribute(10);
echo '$g->getAttribute()    =>   ';
echo $g->getAttribute();
*************************
attribute; 
    }
    
    public function setAttribute ($value){
	$this->attribute = $value;
    }
}
$g=new ClassName();
$g->setAttribute(10);
echo '$g->getAttribute()    =>   ';
echo $g->getAttribute();
?>