Home  >  Article  >  php教程  >  php.ini 中的short

php.ini 中的short

WBOY
WBOYOriginal
2016-06-06 19:52:36969browse

short_open_tag 决定是否允许使用 PHP 代码开始标志的缩写形式(? ? )。如果要和 XML 结合使用 PHP,可以禁用此选项以便于嵌入使用 ?xml ? 。否则还可以通过 PHP 来输出,例如:?php echo '?xml version=1.0'; ? 。如果禁用了,必须使用 PHP 代码开始标志的

short_open_tag

决定是否允许使用 PHP 代码开始标志的缩写形式( ?> )。如果要和 XML 结合使用 PHP,可以禁用此选项以便于嵌入使用 。否则还可以通过 PHP 来输出,例如: 。如果禁用了,必须使用 PHP 代码开始标志的完整形式( )。

注意: 本指令也会影响到缩写形式 = ,它和 echo 等价。使用此缩写需要 short_open_tag 的值为 On。


asp_tags

除了通常的 标志之外还允许使用 ASP 风格的标志 。这也包括了输出变量值的缩写 。
注意: ASP 风格标志的支持是 3.0.4 版新加的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn