Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StringInputStream.php

function StringInputStream::peek

Look ahead without moving cursor.

Overrides InputStream::peek

File

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

Class

StringInputStream

Namespace

Masterminds\HTML5\Parser

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal