When using php library for RTM (https://github.com/bartosz-maciaszek/php-rtm), I am getting a response for a particular tasks-list like this:
[notes] => Rtm\DataContainer Object
(
[attributes:Rtm\DataContainer:private] => Array
(
[note] => Rtm\DataContainer Object
(
[attributes:Rtm\DataContainer:private] => Array
(
[id] => 56254802
[created] => 2016-11-06T10:46:43Z
[modified] => 2016-11-06T10:49:26Z
[title] => null
[$t] => https://stackoverflow.com/questions/910912/extract-urls-from-text-in-php1
)
)
)
)
I can get the value of id, created, modified just fine but $t doesn't work.
$note_obj = $obj->getNotes()->getNote();
$note_id = $note_obj->getId();
echo "$note_id\n"; //works fine
$note_content = $note_obj->get{'$t'}(); //doesn't work
print_r($note_content);
Obviously $note_obj->get{'$t'}; fails here.....So How do I access such data?