PHPHtmlParser\Content::fastForward PHP Method

fastForward() public method

Moves the current position forward.
public fastForward ( integer $count )
$count integer
    public function fastForward($count)
    {
        $this->pos += $count;
        return $this;
    }

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::fastForward