可用php打开和关闭标签[关闭]

PHP documentation states:

<%= $variable; # This is a shortcut for "<% echo . . ." %>

<?= expression ?> This is a shortcut for "<? echo expression ?>"

...short tags and ASP style tags, and can be turned on and off from the php.ini configuration file.

So I attempted to try out the "shortcuts" for ASP style tags and short tags to verify these statements. I got this:

Parse error: syntax error, unexpected 'echo' (T_ECHO) in C:\Users\Robert\Documents\web development\xampp\htdocs\xampp\web_development ew_study\one.php on line 2

On a simple line of code as this:

<%= echo "tom" %>

and this

<?= echo "tom" ?>

Does anyone know why this is the case?

Code should be

<%= "tom" %>