SyntaxFix
Write A Post
Hire A Developer
Questions
The var keyword is used to declare variables in a class in PHP 4:
var
class Foo { var $bar; }
With PHP 5 property and method visibility (public, protected and private) was introduced and thus var is deprecated.
public
protected
private