convert array to object php

PHP
$arrayResult = array_map(function($array){
    return (object)$array;
}, $yourOrinalArray);$object = (object) $array;$object = json_decode(json_encode($array), FALSE);

Source

Also in PHP: