I am trying to get current trends from twitter api (but this is not relevant).
I get information as an object. In this situation, some of the properties that I need to access relate to the dates since the last update of the trends, so I can not hard-code the property names.
Here is an example: I did not explain myself very well, which, I am afraid, did not: (
stdClass Object ( [2011-03-09 02:45] => Array ( [0] => stdClass Object ( [promoted_content] => [events] => [query] => RIP Mike Starr [name] => RIP Mike Starr ) [1] => stdClass Object ( [promoted_content] => [events] => [query] => Mac & Cheese [name] => Mac & Cheese )
Note. This is not a complete object.
source share