php array to object code example
Example 1: php convert array to object
$object = (object) $array;
Example 2: object to array php
$array = (array) $yourObject;
Example 3: convert array to object php
$arrayResult = array_map(function($array){
return (object)$array;
}, $yourOrinalArray);
Example 4: array to object php
$object = json_decode(json_encode($array), FALSE);