src/Carbon/CarbonPeriod.php
public static function createFromIso($iso, $options = null)
    {
        $params = static::parseIso8601($iso);

        $instance = static::createFromArray($params);

        if ($options !== null) {
            $instance->setOptions($options);
        }

        return $instance;
    }
public static function createFromIso($iso, $options = null)
    {
        $params = static::parseIso8601($iso);

        $instance = static::createFromArray($params);

        if ($options !== null) {
            $instance->setOptions($options);
        }

        return $instance;
    }
public static function createFromIso ( $ iso , $ options = null ) { $ params = static :: parseIso8601 ( $ iso ) ; $ instance = static :: createFromArray ( $ params ) ; if ( $ options !== null ) { $ instance -> setOptions ( $ options ) ; } return $ instance ; }
Create CarbonPeriod from ISO 8601 string.

@param string   $iso
@param int|null $options

@return static
Create CarbonPeriod from ISO 8601 string .