php array of array to array of object code example
Example 1: php convert array to object
$object = (object) $array;
Example 2: array to object php
$object = json_decode(json_encode($array), FALSE);
$object = (object) $array;
$object = json_decode(json_encode($array), FALSE);