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:
t
in /usr/local/...Fatal error: Cannot access empty property in /....
I'm using php7 and the following works fine for me:
Correct answer (also for PHP7) is:
Have you tried:
This ought to work:
Failing that: