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

Breadcrumb

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

function ExplicitOctalEmulator::isEmulationNeeded

Overrides TokenEmulator::isEmulationNeeded

File

vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php, line 13

Class

ExplicitOctalEmulator

Namespace

PhpParser\Lexer\TokenEmulator

Code

public function isEmulationNeeded(string $code) : bool {
    return strpos($code, '0o') !== false || strpos($code, '0O') !== false;
}

API Navigation

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