php mengonversi array menjadi objek
$object = (object) $array;
Crazy programmer
$object = (object) $array;
$array = (array) $yourObject;
$object = json_decode(json_encode($array), FALSE);
$arrayResult = array_map(function($array){
return (object)$array;
}, $yourOrinalArray);
$object = (object)$array;
// Typecasting
$person = (object) [
"name" => "Mr. Jhonson",
"description" => "Lorem ipsum dolor sit amet consectetur adipisicing elit",
"addresses" => [ "line1" => "Lorem ipsum dolor", ], ];
$person->name; // "Mr. Jhonson"
$person->addresses['line1']; // "Lorem ipsum dolor"