Dutch PHP Conference 2025 - Call For Papers

PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

Опис

public PhpToken::__toString(): string

Returns the textual content of the token.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

A textual content of the token.

Приклади

Приклад #1 PhpToken::__toString() example

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

Подані вище приклади виведуть:

echo

Прогляньте також

add a note

User Contributed Notes

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