Top "Stdclass" questions

`stdClass` is php's generic empty class, kind of like Object in Java or object in Python.

How to get data out of stdclass object?

I am using $this->db->get_where() to get data from database in codeigniter. Its returning following which …

php codeigniter codeigniter-2 stdclass
stdClass Object problems

I'm struggling to parse the below data using PHP. An API returns it, and I've tried various syntaxes. How do …

php arrays stdclass
Add method in an std object in php

Is it possible to add a method/function in this way, like $arr = array( "nid"=> 20, "title" => "Something", "value" =&…

php object stdclass
How to use implode a column from an array of stdClass objects?

I have an array of stdClass objects and I want to build a comma separated list using one specific field …

php arrays implode csv stdclass
When should I use stdClass and when should I use an array in php oo code?

In the middle of a period of big refactorings at work, I wish to introduce stdClass ***** as a way to …

php oop stdclass
PHP: How to parse a stdClass Object?

I'm trying to parse this data that is returned from SmartyStreets (it's an address verification company). Here is an example: …

php stdclass smartystreets
php convert stdClass object to array

Could anyone shed any light as to why I can get this working. I want to query an array to …

php arrays object stdclass
How to access a member of an stdClass in PHP that starts with an @

I have some json object that I decoded, and one of the attributes starts with an "@" and I can't access …

php arrays json stdclass
How to make PHP stdClass Object that has the same name?

I'm working against an API that gives me an stdClass object that looks like this (actual data replaced) "data": [ { "type": "…

php object stdclass
Access property in stdClass Object

stdClass Object ( [ModuleAccountInfo] => Array ( [0] => stdClass Object ( [ServerName] => EAST [HostingModule] => ActiveDirectory [ActiveDirectorySiteName] => EAST [AccountIdentity] => OU=…

php arrays object stdclass