convert array to object php
snippet in php

php convert array to object

user9039

$object = (object) $array;

convert array to object php

user3959

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