I have a problem with Undefined index: action at Line 23. I am not sure how to solve this. Is it by adding single quotes to $'n'. Seeking for assistance. Thank you.
<?php
class get
{
    private $properties = array();
    public function __construct($db)
    {
        foreach ($_GET as $k => $v)
        {
            $v = $db->clean($v);
            $this->$k = $v;
        }
    }
    public function __set($n, $v)
    {
        $this->properties[$n] = $v;
    }
    public function __get($n)
    {
        return $this->properties[$n]; //this is Line 23
    }
    public function __isset($n)
    {
        return isset($this->properties[$n]);
    }
    public function __unset($n)
    {
        unset($this->properties[$n]);
    }
}
?>
