I find this annoying as I am having to wrap loads of things in if statements all the time.
for example
if $cat->age isn't set this will throw up a notice
Code: Select all
if($cat->age > 10)
{
print "old cat";
}
Code: Select all
if(isset($age->age)){
if($cat->age > 10)
{
print "old cat";
}
}