src/Arrays/ArrayUtil.php
public function arrayToObject(array $array): \stdClass
    {
        $objResult = new \stdClass();

        foreach ($array as $varKey => $varValue) {
            $objResult->{$varKey} = $varValue;
        }

        return $objResult;
    }
public function arrayToObject(array $array): \stdClass
    {
        $objResult = new \stdClass();

        foreach ($array as $varKey => $varValue) {
            $objResult->{$varKey} = $varValue;
        }

        return $objResult;
    }
public function arrayToObject ( array $ array ) : \ stdClass { $ objResult = new \ stdClass ( ) ; foreach ( $ array as $ varKey => $ varValue ) { $ objResult -> { $ varKey } = $ varValue ; } return $ objResult ; }
Creates a stdClass from array.

@param $array

@return \stdClass
Creates a stdClass from array .