You are here

protected function simple_html_dom::copy_until in simplehtmldom API 6

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::copy_until()
  2. 7 simplehtmldom/simple_html_dom.php \simple_html_dom::copy_until()
2 calls to simple_html_dom::copy_until()
simple_html_dom::parse_attr in simplehtmldom/simple_html_dom.php
simple_html_dom::read_tag in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 876

Class

simple_html_dom

Code

protected function copy_until($chars) {
  $pos = $this->pos;
  $len = strcspn($this->doc, $chars, $pos);
  $this->pos += $len;
  $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null;

  // next
  return substr($this->doc, $pos, $len);
}