I was just wondering how important it is to declare a property when I'm going to be assigning it a value later. E.g.:
class Foo
{
var $bar;
function Foo()
{
$this->bar = (something);
}
}
If I leave out the "var $bar;" it all seems to work the same, I get no error complaints (not even notices). But "they" tell us we're supposed to do it - why?