i was looking at a tutorial from ZendCasts where i wondered about the code he used. a simplified version below
class TestClass {
private $_var;
private static function getDefaultView() {
if (self::$_var === null) { ... } // this is the line in question
}
}
i wonder why is something like isset(self::$_var)
not used instead?
when i use self::
i need the $
sign to refer to variables? i cant do self::_var
?
how does ==
differ from ===