note 80467 added to function.json-decode
| From: | tom dot claessens at duvalguillaume dot com | Date: | Thu, 17 Jan 2008 16:43:47 +0000 |
| Subject: | note 80467 added to function.json-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135169@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 87.238.162.147
Probable Submitter: 217.64.254.146
----
Manual Page -- http://www.php.net/manual/en/function.json-decode.php
Edit -- https://master.php.net/note/edit/80467
Del: integrated -- https://master.php.net/note/delete/80467/integrated
Del: useless -- https://master.php.net/note/delete/80467/useless
Del: bad code -- https://master.php.net/note/delete/80467/bad+code
Del: spam -- https://master.php.net/note/delete/80467/spam
Del: non-english -- https://master.php.net/note/delete/80467/non-english
Del: in docs -- https://master.php.net/note/delete/80467/in+docs
Del: other reasons-- https://master.php.net/note/delete/80467
Reject -- https://master.php.net/note/reject/80467
Search -- https://master.php.net/manage/user-notes.php