What does this keyword do? If I delete the "var" declarations, it doesn't seem to make any difference to my code. Having the var declaration doesn't even prevent "undefined property" error messages unless you do:
var $variable = "a value";
So what's the point, apart from greater clarity? Don't get me wrong, I'd really like var to do something. In fact, I wish PHP required you to declare all variables (or at least have the option, as in Visual Basic).
But it doesn't seem to do anything.