Get a PHP object property that is a number [duplicate]

This should work:

$object->content->{'5'}

Leave a Comment