note 80467 rejected from function.json-decode by nlopess
| From: | nlopess@php.net | Date: | Thu, 17 Jan 2008 16:56:54 +0000 |
| Subject: | note 80467 rejected from function.json-decode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135172@lists.php.net to get a copy of this message | ||
Note Submitter: tom dot claessens at duvalguillaume dot com
----
After decoding a JSON file - I started accessing the various created objects and arrays.
In the end I came down to the object I need access to to retrieve some data. The problem is that the
actual object has a colon in its name. I tried finding a solution to access it, however, was
unsuccessful.
Example:
stdClass Object
(
[media:player] => stdClass Object
(
[width] => 800
[height] => 600
)
)
Any suggestions on how to access the media:player object? I'm probably not the only one running
into such a thing so a solution would be nice.