This will work:
echo $object->feed->{'xmlns$media'};
Alternatively, you can tell json_decode
to return an array:
$array = json_decode($json, true);
echo $array['feed']['xmlns$media'];
More Related Contents:
- Get a PHP object property that is a number [duplicate]
- How can I access an array/object?
- How to access object properties with names like integers or invalid property names?
- Calling closure assigned to object property directly
- Serializing PHP object to JSON
- How to convert a string to JSON object in PHP
- How to create new property dynamically
- How to decode a JSON String with several objects in PHP?
- How can I access object properties with names like integers or invalid property names?
- Getting particular object
- How can I parse a JSON file with PHP? [duplicate]
- Reading JSON POST using PHP
- PHP Fatal error: Using $this when not in object context
- How to POST JSON Data With PHP cURL?
- json_decode returns NULL after webservice call
- PHP json_decode() returns NULL with valid JSON?
- php json_encode not working on arrays partially
- PHP OOP core framework
- JavaScript: How do I create JSONP?
- Send post request using Volley and receive in PHP
- Convert invalid json into valid json
- Best way to create an empty object in JSON with PHP?
- POST request with JSON body
- Parsing JSON array with PHP foreach
- ‘Malformed UTF-8 characters, possibly incorrectly encoded’ in Laravel
- Send data from android to server via JSON
- Array to Object and Object to Array in PHP – interesting behaviour
- Syntax error while defining an array as a property of a class
- How can I access an object property named as a variable in php?
- json_encode not working with a html string as value