What does this symbol mean in PHP <?=
?
这个符号在PHP
Example usage:
使用示例:
<h2>Manage Role: > (<?= $myACL->getRoleNameFromID($_GET['roleID']); ?>)</h2>
4 个解决方案
#1
11
It's functionally the same as <?php echo $myACL->getRoleNameFromID($_GET['roleID']); ?>
它的功能和 getRoleNameFromID($ _GET[' roleID ']);? >
#2
13
To add to Mark's answer: The short_tags option must be enabled for the <?=
syntax to be valid. This presents a major portability problem when moving to a server that has this option disabled.
要添加到Mark的答案:必须为
See the PHP Manual for more info on short tags
有关短标记的更多信息,请参阅PHP手册
#3
6
It's the PHP Short Tag equivalent of printing.
它是PHP短标记,相当于打印。
From the PHP INI:
从PHP INI:
Using short tags is discouraged when developing code meant for redistribution ; since short tags may not be supported on the target server.
当开发用于重新分配的代码时,不建议使用短标记;因为在目标服务器上不支持短标记。
See "Are PHP Short Tags Acceptable to Use?" on *.
参见*上的“PHP短标记是否可以使用?”
#4
1
The <?= ... > tag says to execute whatever is in ... and output the results.
#1
11
It's functionally the same as <?php echo $myACL->getRoleNameFromID($_GET['roleID']); ?>
它的功能和 getRoleNameFromID($ _GET[' roleID ']);? >
#2
13
To add to Mark's answer: The short_tags option must be enabled for the <?=
syntax to be valid. This presents a major portability problem when moving to a server that has this option disabled.
要添加到Mark的答案:必须为
See the PHP Manual for more info on short tags
有关短标记的更多信息,请参阅PHP手册
#3
6
It's the PHP Short Tag equivalent of printing.
它是PHP短标记,相当于打印。
From the PHP INI:
从PHP INI:
Using short tags is discouraged when developing code meant for redistribution ; since short tags may not be supported on the target server.
当开发用于重新分配的代码时,不建议使用短标记;因为在目标服务器上不支持短标记。
See "Are PHP Short Tags Acceptable to Use?" on *.
参见*上的“PHP短标记是否可以使用?”
#4
1
The <?= ... > tag says to execute whatever is in ... and output the results.