A->b->c might exist but c might not exist. How do I check it?
A->b->c
c
It might be better to wrap this in an isset()
isset()
if(isset($A->b->c)) { // c exists
That way if $A or $A->b don't exist... it doesn't blow up.
$A
$A->b
548k questions
547k answers
4 comments
86.3k users