Answers for "How to convert an array into an object in php"

PHP
9

php convert array to object

$object = (object) $array;
Posted by: Guest on March-17-2020
0

array to object php

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

Code answers related to "How to convert an array into an object in php"

Browse Popular Code Answers by Language