src/Support/Collection/StringSet.php
/**
     * Creates a set from a string of tokens.
     */
Creates a set from a string of tokens.
Creates a set from a string of tokens .
public static function createFromString(string $input): self
    {
        $tokens = new self();
        $token = strtok($input, "\t\n\f\r\x20");
        while ($token !== false) {
            $tokens->append($token);
            $token = strtok("\t\n\f\r\x20");
        }
        return $tokens;
    }
public static function createFromString ( string $ input ) : self { $ tokens = new self ( ) ; $ token = strtok ( $ input , " \t \n \f \r \x20 " ) ; while ( $ token !== false ) { $ tokens -> append ( $ token ) ; $ token = strtok ( " \t \n \f \r \x20 " ) ; } return $ tokens ; }
Creates a set from a string of tokens.
Creates a set from a string of tokens .