加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > PHP > 正文

是否删除了PHP的ASP和脚本标记

发布时间:2020-05-25 08:54:01 所属栏目:PHP 来源:互联网
导读:我正在研究 PHP 5.3.然而,在查看 PHP manual时,我发现最新手册中仅记录了标准标签和短标签.脚本和ASP标记未记录.我知道不推荐他们,我也不使用它们.只是要求信息. 在最新的手册中,没有关于asp标签和脚本标签的事情.所以我相信它们在最新版本的PHP中被删除但无

我正在研究 PHP 5.3.然而,在查看 PHP manual时,我发现最新手册中仅记录了标准标签和短标签.脚本和ASP标记未记录.我知道不推荐他们,我也不使用它们.只是要求信息.

在最新的手册中,没有关于asp标签和脚本标签的事情.所以我相信它们在最新版本的PHP中被删除但无法验证.我试图查看更改日志,但无法找到它们是否被删除,如果是,何时删除.

如果在最新版本的PHP中仍然支持(即使折旧),有人可以回答吗?如果不是,它们在哪个版本中被折旧以及什么时候被完全删除?

OMG,我以前甚至不知道可以使用ASP标签..

无论如何,我不知道你正在看哪个版本的手册,但请看这里:

http://us1.php.net/manual/en/ini.core.php#ini.asp-tags

对于速记标签,它说:

Note: This directive also affected the shorthand <? echo. Use of this shortcut required
short_open_tag to be on. Since PHP 5.4.0,<?= is always available.

for Script和ASP :(示例二是脚本)

http://us1.php.net/manual/en/language.basic-syntax.phpmode.php

While the tags seen in examples one and two are both always
available,example one is the most commonly used,and recommended,of
the two.

Short tags (example three) are only available when they are enabled
via the short_open_tag php.ini configuration file directive,or if PHP
was configured with the –enable-short-tags option.

ASP style tags (example four) are only available when they are enabled
via the asp_tags php.ini configuration file directive.

因此,实质上如果文档是正确的,并且已更新 – 它们尚未被弃用.

更多信息:Are PHP short tags acceptable to use?

[重复?]

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读