php result array into object code example
Example 1: array to object php
$object = json_decode(json_encode($array), FALSE);
Example 2: cast array to object php
$object = (object) $array;
$object = json_decode(json_encode($array), FALSE);
$object = (object) $array;