(PHP 8)
PhpToken::__toString — Returns the textual content of the token.
public PhpToken::__toString ( ) : string
Returns the textual content of the token.
This function has no parameters.
A textual content of the token.
Example #1 PhpToken::__toString() example
<?php $token = new PhpToken(T_ECHO, 'echo'); echo $token;
The above examples will output:
echo
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/phptoken.tostring.php