src/Util/Strings.php
public static function split(string $subject, string $pattern, int $flags = 0): array
    {
        return static::pcre('\preg_split', [$pattern, $subject, -1, $flags | PREG_SPLIT_DELIM_CAPTURE]);
    }
public static function split(string $subject, string $pattern, int $flags = 0): array
    {
        return static::pcre('\preg_split', [$pattern, $subject, -1, $flags | PREG_SPLIT_DELIM_CAPTURE]);
    }
public static function split ( string $ subject , string $ pattern , int $ flags = 0 ) : array { return static :: pcre ( '\preg_split' , [ $ pattern , $ subject , - 1 , $ flags | PREG_SPLIT_DELIM_CAPTURE ] ) ; }
Splits string by a regular expression.

@param  string $subject
@param  string $pattern
@param  int    $flags

@return array
@throws RegexpException
Splits string by a regular expression .