How to pass in __get one parametar and pass to paramaters in __set

class classname {
    private $attribute;

    function __get($name){
        return $this->$name;
    }
    function __set($name,$value){
        if(($name=="attribute") &&  ($value >=0) && ($value <= 100)){
            $this->attribute = $value;
        }
    }
}
$a = new classname();
$a->attribute = 5;
echo $a->attribute;
    Write a Reply...