1 $testObject=(object)array(); 2 3 $testObject->first="firstValue"; 4 5 var_dump($testObject); 6 7 $testObject2= new stdClass(); 8 $testObject2->second="secondValue"; 9 var_dump($testObject2);