Statement on glibc/iconv Vulnerability

PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

Descripción

public PhpToken::__toString(): string

Returns the textual content of the token.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

A textual content of the token.

Ejemplos

Ejemplo #1 PhpToken::__toString() example

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

El resultado de los ejemplos sería:

echo

Ver también

  • token_name() - Obtiene el nombre simbólico de un token PHP dado
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top