Since the name of your property is the string '$t'
, you can access it like this:
echo $object->{'$t'};
Alternatively, you can put the name of the property in a variable and use it like this:
$property_name="$t";
echo $object->$property_name;
You can see both of these in action on repl.it: https://repl.it/@jrunning/SpiritedTroubledWorkspace
Related Contents:
- PDO table inside table using json
- How can I parse a JSON file with PHP? [duplicate]
- Returning JSON from a PHP Script
- JSON encode MySQL results
- Reading JSON POST using PHP
- Pretty-Printing JSON with PHP
- How to POST JSON Data With PHP cURL?
- Reference: Why are my “special” Unicode characters encoded weird using json_encode?
- Simple jQuery, PHP and JSONP example?
- Why would json_encode return an empty string
- How to convert JSON string to array
- PHP convert XML to JSON
- Processing large JSON files in PHP
- How to create a JSON object
- Detect bad json data in PHP json_decode()?
- Fastest way to check if a string is JSON in PHP?
- Facebook Graph API, how to get users email?
- Parsing JSON object in PHP using json_decode
- PHP json_decode() returns NULL with valid JSON?
- How to parse JSON and access results
- Merging two json in PHP
- Why does the PHP json_encode function convert UTF-8 strings to hexadecimal entities?
- Parsing JSON with PHP
- php get values from json encode
- Why is this PHP call to json_encode silently failing – inability to handle single quotes?
- handle json request in PHP
- PHP7.1 json_encode() Float Issue
- Get data from JSON file with PHP [duplicate]
- PHP Fatal error: Call to undefined function json_decode()
- Best way to create an empty object in JSON with PHP?
- Convert invalid json into valid json
- Is there any way to convert json to xml in PHP?
- PHP Create a Multidimensional Array from an array with relational data [duplicate]
- Token must be a short-lived token and in a reasonable timeframe
- Converting Object to JSON and JSON to Object in PHP, (library like Gson for Java)
- Find JSON strings in a string
- How to deal with backslashes in json strings php
- How to add square braces around subarray data inside of a json encoded string?
- PHP’s json_encode does not escape all JSON control characters
- Removing array index reference when using json_encode()
- ‘Malformed UTF-8 characters, possibly incorrectly encoded’ in Laravel
- How to keep json_encode() from dropping strings with invalid characters
- Edit Google calendar events from Google service account: 403
- Send POST data via raw JSON with Postman
- json_encode() non utf-8 strings?
- How to access JSON decoded array in PHP
- How to render ZF2 view within JSON response?
- jQuery $.ajax request of dataType json will not retrieve data from PHP script
- Remove double quote in json_encode()
- Send JSON POST request with PHP