'<?'与'<?php' [英] '<?' versus '<?php'

查看:72
本文介绍了'<?'与'<?php'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我最近遇到了拒绝这个成语的PHP5安装,<? //代码?


并且实际上在发送到浏览器的输出中呈现。



Yikes!


系统管理员无法说明原因,但建议它是PHP5

的事情。


所以我的问题是:<?php将成为必需品吗?如果它是
,我们将不允许用简写回显<?php = $ foo?因为我们

曾经<?= $ bar ??因为那也被打破了。


感谢您的任何建议,


JG

解决方案
FOO?因为我们

习惯了<?=


吧?因为它也被打破了。


感谢您的任何建议,


JG


jerrygarciuh写道:


大家好,


我最近遇到了拒绝这个成语的PHP5安装,<? //代码?


>并且实际上在发送到浏览器的输出中呈现。



Yikes!


系统管理员无法说明原因,但建议它是PHP5

的事情。


所以我的问题是:<?php将成为必需品吗?如果它是
,我们将不允许用简写回显<?php =


Hi folks,

I recently ran into a PHP5 install that rejects the idiom, <? // code ?

and in fact renders that in the output that is sent to the browser.

Yikes!

The sysadmins could not say why this was but suggested it was a PHP5
thing.

So my question to you: is <?php going to become required? And if it
is will we not be allowed to echo by the shorthand <?php=$foo? as we
used to <?=$bar?? As that was broken too.

Thanks for any advice,

JG

解决方案

foo? as we
used to <?=


bar?? As that was broken too.

Thanks for any advice,

JG


jerrygarciuh wrote:

Hi folks,

I recently ran into a PHP5 install that rejects the idiom, <? // code ?

>and in fact renders that in the output that is sent to the browser.

Yikes!

The sysadmins could not say why this was but suggested it was a PHP5
thing.

So my question to you: is <?php going to become required? And if it
is will we not be allowed to echo by the shorthand <?php=


这篇关于'&lt;?'与'&lt;?php'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆