The title explains it all. What's the difference?
var $foo;
$bar;
What's the main difference between this two variables?
I've noticed that "var $foo" is mostly used to declare class attributes, but why is it so?
Thanks in advance for all your answers.