I'm working on this PHP code collaboration and it seems that some people access PHP StdClass fields like this
$body->head
and others like
$body->{'head'}
As far as I can tell these are equivalent. Are they? Does it matter which is used? Which way would you prefer? Any quirks to look out for here?
$body->{'head'}
if possible. – Hypnotist