View Full Version : Isset OOP chained Object Fatal error?

01-05-2006, 11:46 PM
if I have an object $animal->dog->leg, and if both dog and leg are not set. If I do isset($animal->dog->leg), is it going to return false or is it a fatal error? I just want to know if I need to check it 2 times like this: "isset($animal->dog) && isset($animal->dog->leg)" inside if statement.

Many thanks.