php.ini 参数解释

本文记录了php.ini 的参数的解释,所我一点点更新的,如果谁发现了错我,联系偶吧

 

 

 

short_open_tag :


参数类型:boolean


解释:


       Tells whether the short form (<? ?> ) of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example:<?php echo '<?xml version="1.0"'; ?> . Also if disabled, you must use the long form of the PHP open tag (<?php ?> ).

      告诉我们短类型的(<?  ?>)是否可以使用,如果你想要使用php结合XML。为了能够使用<?xml ?>你应该禁止此项。此外,你可以和php一起输出,例如:<?php echo '<?xml version="1.0"'; ?> 。如果你把short_open_tag 设置为disabled,你在编写php程序是必须使用长类型的标签 (<?php ?> )。


Note: This directive also affects the shorthand <?= , which is identical to <? echo . Use of this shortcut requires short_open_tag to be on.


注意:这个指令同样会影响简略标签<?=,这个标签和<?是相等的,如果想用<?=也同样需要将short_open_tag设为 on.

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值