protected function simple_html_dom::copy_until in simplehtmldom API 5.2
Same name and namespace in other branches
- 6 simplehtmldom/simple_html_dom.php \simple_html_dom::copy_until()
- 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
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);
}