PhpToken::__toString
PHP Manual
PHP Manual»PhpToken»PhpToken::__toString

PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

Descrizione

public function PhpToken::__toString(): string

Returns the textual content of the token.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

A textual content of the token.

Esempi

Example #1 PhpToken::__toString() example

<?php
$token = new PhpToken(T_ECHO, 'echo');
echo $token;

I precedenti esempi visualizzeranno:

echo

Vedere anche:

To Top