">" [英] ">"
问题描述
PHP是否允许>在PHP标签中使用?
例如in:
if(a> b){...};
......和...
$ object - >会员;
使用>停止PHP页面是有效的HTML / XML - 通过结束
当前的HTML标记 - 这会阻止页面验证和使用传统格式化工具或解析器的
。
-
__________
| im | yler http://timtyler.org/ ti*@tt1lock.org 删除锁定以回复。
Should PHP have allowed ">" to be used within PHP tags?
e.g. in:
if (a > b) { ... };
....and...
$object -> member;
The use of ">" stops PHP pages being valid HTML/XML - by ending
the current HTML tag - which prevents page validation and the
use of conventional formatting tools or parsers.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
推荐答案
object - >会员;
使用>停止PHP页面是有效的HTML / XML - 通过结束
当前的HTML标记 - 这会阻止页面验证和使用传统格式化工具或解析器的
。
-
__________
| im | yler http://timtyler.org/ ti*@tt1lock.org 取消锁定以回复。
object -> member;
The use of ">" stops PHP pages being valid HTML/XML - by ending
the current HTML tag - which prevents page validation and the
use of conventional formatting tools or parsers.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
2003年11月12日星期三20:57:36 GMT,Tim Tyler< ti*@tt1lock.org>写道:
On Wed, 12 Nov 2003 20:57:36 GMT, Tim Tyler <ti*@tt1lock.org> wrote:
PHP是否允许>在PHP标签中使用?
是。
例如in:
if(a> b){...};
......和......
Should PHP have allowed ">" to be used within PHP tags?
Yes.
e.g. in:
if (a > b) { ... };
...and...
对象 - >会员;
使用>停止PHP页面是有效的HTML / XML - 通过结束当前的HTML标记 - 这会阻止页面验证和使用传统的格式化工具或解析器。
object -> member;
The use of ">" stops PHP pages being valid HTML/XML - by ending
the current HTML tag - which prevents page validation and the
use of conventional formatting tools or parsers.
只有脚本的输出必须符合HTML。实际上,这甚至不是真正的b $ b;没有人限制你用PHP输出HTML或XHTML;你可以随心所欲地输出
。
-
Andy Hassall(an**@andyh.co.uk) icq(5747695)( http://www.andyh.co.uk )
空间:磁盘使用情况分析工具( http:// www。 andyhsoftware.co.uk/space )
这篇关于">"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!