PHP 8.1.28 Released!

PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

Description

public PhpToken::__toString(): string

Returns the textual content of the token.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

A textual content of the token.

Exemples

Exemple #1 PhpToken::__toString() example

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

Les exemples ci-dessus vont afficher :

echo

Voir aussi

  • token_name() - Retourne le nom d'un élément de code source
add a note

User Contributed Notes

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