Is there a way to convert a multidimensional array to a stdClass object in PHP?
array
stdClass
Casting as (object) doesn\'t seem to work recu
(object)
The simpliest way to convert an associative array to object is:
First encode it in json, then decode it.
like $objectArray = json_decode(json_encode($associtiveArray));
$objectArray = json_decode(json_encode($associtiveArray));