Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-05-2006, 11:46 PM #1
- Join Date
- Jul 2005
- Thanked 0 Times in 0 Posts
Isset OOP chained Object Fatal error?
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.