array to object on php code example
Example 1: php convert array to object
$object = (object) $array;
Example 2: convert array to object php
$arrayResult = array_map(function($array){
return (object)$array;
}, $yourOrinalArray);
$object = (object) $array;
$arrayResult = array_map(function($array){
return (object)$array;
}, $yourOrinalArray);