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)
public static function _arrayToObject($array) { $json = json_encode($array); $object = json_decode($json); return $object }