0
1
Two part question: After calling the Mixpanel api I am returned something like this stdClass Object ( [legend_size] => 1 [data] => stdClass Object ( [series] => Array ( [0] => 2011-04-06 [...
2011-04-08
12
3
Is there a way in PHP to destroy an object from within that same object? ...
2009-09-12
0
1
I am within a class. I try to set an object member: $this->list = "hello"; print $this->list; It returns "hello"; However, empty($this->list)) always return true. But for non object member $tmp = "hello", empty($tmp) return false. ...
2011-07-05
1
3
I'm making a class which needs to provide me with all the data from the MySQL-table "content". I want to have my data returned as an object. So far I managed to get one object returned, but i'd like to get an Object Collection with all my rows f...
2011-03-06
0
1
I'm using an API that results an array like this when there is data: object(stdClass)#38 (5) { ["ReturnCode"]=> int(1) ["EntityResults"]=> object(stdClass)#39 (1) { ["Entity"]=> object(stdClass)#40 (15) { ["id"]=> int(43622...
2011-03-28
5
9
I am experimenting with PHP OOP what i'm trying to find out is, Is it possible to access a object instance from withing a object that was created in this object instance? sounds confusing, so here is a example: contents of index class ma...
2010-01-29
0
4
I have a function that is called like this: foo($object->ID); and in the function I need to somehow select $object if $object->ID is passed as a variable. function foo($id = NULL){ if($id != NULL) ... // here I want to get $object e...
2010-12-15
2
2
I'm trying to track all changes made to a PHP variable. The variable can be an object or array. For example it looks something like: $object = array('a', 'b'); This object is then persisted to storage using an object-cache. When php script r...
2009-08-14
0
1
Please help me understand: print gettype(new CustomerObject()) prints: "object" (so it is an object) BUT print gettype((new CustomerObject())->get_customer()); prints: unexpected T_OBJECT_OPERATOR If I do it over two lines it works f...
2010-05-28
15
7
I am fairly new to web programming, I have mainly used java to create desktop applications in the past. I'm trying to figure out how to create persistent objects in php. Maybe persistent isn't the right word, I don't want the object to be uniqu...
2010-11-23