src/PHPHtmlParser/Content.php
public function skip(string $string, bool $copy = false)
    {
        $len = strspn($this->content, $string, $this->pos);

        // make it chainable if they don't want a copy
        $return = $this;
        if ($copy) {
            $return = substr($this->content, $this->pos, $len);
        }

        // update the position
        $this->pos += $len;

        return $return;
    }
public function skip(string $string, bool $copy = false)
    {
        $len = strspn($this->content, $string, $this->pos);

        // make it chainable if they don't want a copy
        $return = $this;
        if ($copy) {
            $return = substr($this->content, $this->pos, $len);
        }

        // update the position
        $this->pos += $len;

        return $return;
    }
public function skip ( string $ string , bool $ copy = false ) { $ len = strspn ( $ this -> content , $ string , $ this -> pos ) ; // make it chainable if they don't want a copy $ return = $ this ; if ( $ copy ) { $ return = substr ( $ this -> content , $ this -> pos , $ len ) ; } // update the position $ this -> pos += $ len ; return $ return ; }
Skip a given set of characters.

@param string $string
@param bool $copy
@return Content|string
Skip a given set of characters .