PHPHtmlParser\Content::skipByToken PHP Method

skipByToken() public method

Skip a given token of pre-defined characters.
public skipByToken ( string $token, boolean $copy = false ) : null | string
$token string
$copy boolean
return null | string
    public function skipByToken($token, $copy = false)
    {
        $string = $this->{$token};
        return $this->skip($string, $copy);
    }

Usage Example

示例#1
0
 public function testSkipByToken()
 {
     $content = new Content(' b c');
     $content->fastForward(1);
     $content->skipByToken('blank');
     $this->assertEquals('b', $content->char());
 }
All Usage Examples Of PHPHtmlParser\Content::skipByToken