Answers for "array to object + php"

PHP
0

array to object php

$object = json_decode(json_encode($array), FALSE);
Posted by: Guest on January-22-2021
1

convert array to object php

$arrayResult = array_map(function($array){
    return (object)$array;
}, $yourOrinalArray);
Posted by: Guest on July-17-2020

Browse Popular Code Answers by Language