使用 &lt;?php , &lt;?,<脚本语言=“php">, <% 在 php [英] Major advantages and disadvantages in using &lt;?php , &lt;? ,&lt;script language=“php”&gt; , &lt;% in php

查看:26
本文介绍了使用 &lt;?php , &lt;?,<脚本语言=“php">, <% 在 php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到在 php 中有四种类型的标签.

hi i saw there are four types of tags using in php .

<?php

?>

<?

?>

<script language="php">

</script>

<%

%>

并且只有第一个在使用,其他的已弃用.

and only the first one is using and others are deprecated .

我想知道每个的主要优点和缺点.并想知道为什么不推荐使用 2 ,3 ,4 .

i want to know the major advantages and disadvantages of each . and want to know why the 2 ,3 ,4 ones are deprecated .

推荐答案

  1. 普通php标签
  2. XML 标签
  3. HTML 标签
  4. ASP 标签

我认为弃用标签的缺点是它们在其他语言中也很常见,不仅仅是 php.

I think the disadvantage of deprecated tags is that they are common in other languages too, not only php.

这篇关于使用 &lt;?php , &lt;?,<脚本语言=“php">, <% 在 php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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