php convert array to object
snippet in php

php convert array to object

user746

$object = (object) $array;

convert array to object php

user6210

$arrayResult = array_map(function($array){
    return (object)$array;
}, $yourOrinalArray);