How can I convert an array like this to an object?
[128] => Array ( [status] => "Figure A. Facebook\'s horizontal scrollbars showing u
you can simply use type casting to convert an array to object.
// *convert array to object* Array([id]=> 321313[username]=>shahbaz) $object = (object) $array_name; //now it is converted to object and you can access it. echo $object->username;