You are here

public function Scanner::current in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/Scanner.php \Masterminds\HTML5\Parser\Scanner::current()

Get the current character.

Note, this does not advance the pointer.

Return value

string The current character.

File

vendor/masterminds/html5/src/HTML5/Parser/Scanner.php, line 80

Class

Scanner
The scanner.

Namespace

Masterminds\HTML5\Parser

Code

public function current() {
  if ($this->is
    ->valid()) {
    return $this->is
      ->current();
  }
  return false;
}