WordPress at Your Fingertips
function is not described

SimplePie_Decode_HTML_Entities::consume_range() public WP 1.0

Consume a range of characters

{} It's a method of the class: SimplePie_Decode_HTML_Entities{}

No Hooks.


Mixed. A series of characters that match the range, or false


$SimplePie_Decode_HTML_Entities = new SimplePie_Decode_HTML_Entities();
$SimplePie_Decode_HTML_Entities->consume_range( $chars );
$chars(string) (required)
Characters to consume

Code of SimplePie_Decode_HTML_Entities::consume_range() WP 5.8.2

public function consume_range($chars)
	if ($len = strspn($this->data, $chars, $this->position))
		$data = substr($this->data, $this->position, $len);
		$this->consumed .= $data;
		$this->position += $len;
		return $data;

	return false;