public static function arrayObject($array)
    {
        if (is_array($array)) {
            $object = new \stdClass();
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $object->$key = static::arrayObject($value);
                } else {
                    $object->$key = $value;
                }
            }

            return (object) $object;
        }

        return false;
    }
public static function arrayObject($array)
    {
        if (is_array($array)) {
            $object = new \stdClass();
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $object->$key = static::arrayObject($value);
                } else {
                    $object->$key = $value;
                }
            }

            return (object) $object;
        }

        return false;
    }
public static function arrayObject ( $ array ) { if ( is_array ( $ array ) ) { $ object = new \ stdClass ( ) ; foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ object -> $ key = static :: arrayObject ( $ value ) ; } else { $ object -> $ key = $ value ; } } return ( object ) $ object ; } return false ; }
Convert arrays to Object.

@param array $array Arrays

@since 2.0.0

@return object
Convert arrays to Object .