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
1.4m articles
1.4m replys
5 comments
56.9k users