PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

Açıklama

public PhpToken::__toString(): string

Returns the textual content of the token.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

A textual content of the token.

Örnekler

Örnek 1 PhpToken::__toString() example

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

Yukarıdaki örneklerin çıktısı:

echo

Ayrıca Bakınız

  • token_name() - Belirtilen PHP dizgeciğinin simgesel ismini döndürür
add a note add a note

User Contributed Notes

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