I have a doubt what is the difference between below class.
class Test {
    var $location;
    public function __construct() {
         $this->location = 'India';
    }
}
class Test {
    protected $location;
    public function __construct() {
         $this->location = 'India';
    }
}
Why we use var ? What is the purpose of using var as global here.??
Please clarify me.
 
    