Я понятия не имею об этом. Я знаю следующее
Код: Выделить всё
$obj = new stdClass;
$obj->attr = 'loremipsum';
Код: Выделить всё
$obj = (object) array('attr'=>'loremipsum');
Код: Выделить всё
$obj = new stdClass(array('attr'=>'loremipsum'));
Подробнее здесь: https://stackoverflow.com/questions/137 ... t-creation