使用 <?php , <?,<脚本语言=“php">, <% 在 php [英] Major advantages and disadvantages in using <?php , <? ,<script language=“php”> , <% in php
本文介绍了使用 <?php , <?,<脚本语言=“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 .
推荐答案
- 普通php标签
- XML 标签
- HTML 标签
- ASP 标签
我认为弃用标签的缺点是它们在其他语言中也很常见,不仅仅是 php.
I think the disadvantage of deprecated tags is that they are common in other languages too, not only php.
这篇关于使用 <?php , <?,<脚本语言=“php">, <% 在 php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文