A Google APIs encoded in JSON returned an object such as this
[updated] => stdClass Object
(
[$t] => 2010-08-18T19:17:42.026Z
)
Anyone knows how can I access the $t value?
$object->$t obviously returns
Notice: Undefined variable:
tin /usr/local/…Fatal error: Cannot access empty property in /….
Since the name of your property is the string
'$t', you can access it like this:Alternatively, you can put the name of the property in a variable and use it like this:
You can see both of these in action on repl.it: https://repl.it/@jrunning/SpiritedTroubledWorkspace