PhpToken::isIgnorable

(PHP 8)

PhpToken::isIgnorableTells whether the token would be ignored by the PHP parser.

Açıklama

public PhpToken::isIgnorable ( ) : bool

Tells whether the token would be ignored by the PHP parser.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

A boolean value whether the token would be ignored by the PHP parser (such as whitespace or comments).

Örnekler

Örnek 1 PhpToken::isIgnorable() example

<?php
$echo 
= new PhpToken(T_ECHO'echo');
var_dump($echo->isIgnorable());   // -> bool(false)

$space = new PhpToken(T_WHITESPACE' ');
var_dump($space->isIgnorable());  // -> bool(true)

Ayrıca Bakınız