You are here

public function StringInputStream::peek in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php \Masterminds\HTML5\Parser\StringInputStream::peek()

Look ahead without moving cursor.

Overrides InputStream::peek

File

vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php, line 318

Class

StringInputStream

Namespace

Masterminds\HTML5\Parser

Code

public function peek() {
  if ($this->char + 1 <= $this->EOF) {
    return $this->data[$this->char + 1];
  }
  return false;
}