You can do: $obj->Title etcetera.

Or you can turn it into an array:

$array = get_object_vars($obj);
Answer from Naftali on Stack Overflow
๐ŸŒ
PHP Freaks
forums.phpfreaks.com โ€บ php coding โ€บ php coding help
How to fetch the value from stdclass object? - PHP Coding Help - PHP Freaks
December 2, 2019 - Hi all, I need some help with my code as I have a hard time with fetching the value from the stdclass. I am using json data to convert it to PHP so I would like to fetch the "appears" data from the stdclass object. When I try this: echo $data->appears; I'm getting this: Notice: Trying to get p...
Discussions

Getting stdClass Object values - PHP - SitePoint Forums | Web Development & Design Community
I have converted some JSON using json_decode, Iโ€™ve then used print_r to display the array, as shown below: stdClass Object ( [orders] => Array ( [0] => stdClass Object ( [id] => 1429118021 [email] => test@mailinator.com [closed_at] => [created_at] => 2015-10-06T18:31:45+01:00 [updated_at] ... More on sitepoint.com
๐ŸŒ sitepoint.com
0
October 6, 2015
Get values stdClass Object PHP - Stack Overflow
I work with mp4 data extract php script. this returns a stdClass Object as below. can anyone tell me how to show the duration from below object. thank you stdClass Object ( [hasVideo] => ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
php - Get stdClass Object value - Stack Overflow
I'm trying to get a value from stdClass Object array with no success. More on stackoverflow.com
๐ŸŒ stackoverflow.com
stdclass - Getting values of a stdObject in php - Stack Overflow
I am using an API to get some values. When I print my variable returning an array from api it returns stdObject Class This is how I request the data: $graphObject = (new FacebookRequest( $session... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
PHP
php.net โ€บ manual โ€บ en โ€บ language.types.object.php
PHP: Objects - Manual
<!--Example shows how to convert array to stdClass Object and how to access its value for display --> <?php $num = array("Garha","sitamarhi","canada","patna"); //create an array $obj = (object)$num; //change array to stdClass object echo "<pre>"; print_r($obj); //stdClass Object created by casting of array $newobj = new stdClass();//create a new $newobj->name = "India"; $newobj->work = "Development"; $newobj->address="patna"; $new = (array)$newobj;//convert stdClass to array echo "<pre>"; print_r($new); //print new object ##How deals with Associative Array $test = [Details=>['name','roll number','college','mobile'],values=>['Naman Kumar','100790310868','Pune college','9988707202']]; $val = json_decode(json_encode($test),false);//convert array into stdClass object echo "<pre>"; print_r($val); echo ((is_array($val) == true ?
๐ŸŒ
SitePoint
sitepoint.com โ€บ php
Getting stdClass Object values - PHP - SitePoint Forums | Web Development & Design Community
October 6, 2015 - I have converted some JSON using json_decode, Iโ€™ve then used print_r to display the array, as shown below: stdClass Object ( [orders] => Array ( [0] => stdClass Object ( [id] => 1429118021 [email] => test@mailinator.com [closed_at] => [created_at] => 2015-10-06T18:31:45+01:00 [updated_at] => 2015-10-06T18:31:45+01:00 [number] => 2 I am trying to display the ID number, and I was expecting to use: echo $json['orders'][0]['id'] But that would have been too simple ๐Ÿ˜›
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 24143733 โ€บ getting-values-of-a-stdobject-in-php
stdclass - Getting values of a stdObject in php - Stack Overflow
I am using an API to get some values. When I print my variable returning an array from api it returns stdObject Class ... $graphObject = (new FacebookRequest( $session, 'GET', '/me?fields=id,first_name,last_name,tagged_places' ))->execute()->getGraphObject()->asArray(); ... Array ( [id] => 111111 [first_name] => Bob [last_name] => Stevensen [tagged_places] => stdClass Object ( [data] => Array ( [0] => stdClass Object ( [id] => 111111 [created_time] => 1905-01-01T08:00:00+0000 [place] => stdClass Object ( [id] => 1111111 [location] => stdClass Object ( [latitude] => 36.1313 [longitude] => -95.9
Find elsewhere
๐ŸŒ
Moodle
moodle.org โ€บ mod โ€บ forum โ€บ discuss.php
Moodle in English: StdClass Object, getting the value | Moodle.org
I am trying to make a custom dashboard on moodle to see how many users have viewed a page. (I am new to PHP so pls bare with me) My SQL comand works fine in PHP my admin, and it works in my PHP file, but when I view it I only see the following: stdClass Object ( [count(id)] => 108 ) I only want the 108 ....
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 44888419 โ€บ getting-values-from-stdclass-object
php - getting values from stdClass Object - Stack Overflow
I try to get values of stdClass Object into php variables. And i looked for other solutions but i couldn't success. Here is my result. stdClass Object ( [messages] => Array ( ...
๐ŸŒ
WebDeveloper.com
webdeveloper.com โ€บ community โ€บ 311557-how-do-i-retrieve-the-value-of-php-stdclass-object
How do I retrieve the value of php stdClass Object
[ShipmentLabel] => stdClass Object ( [LabelURL] => [url]http://www.sandbox.aramex.com/content/rpt_cache/03aa534d8a1d41619530410c532c4d2d.pdf[/url] [LabelFileContents] => ) ... @NogDogMay 27.2015 โ€” #Looks like... [code=php] $whateverTheVariableIs->Shipments->ProcessedShipment->ID [/code]