Differentiating between defined class properties being NULL and not set?
Say if I declare a bunch of class properties in my class definition but do not assign them values, how can I later on tell whether they have been set? The values are null by default so how can I know whether they've been set as null, rather than not being set?
$someObject = new SomeClass();
var_dump(is_null($someObject->myVar));// this is true because it's null by default
$someObject->myVar = null;
var_dump(is_null($someObject->myVar));// this is true because it's is set it to null!