Home > Backend Development > PHP Tutorial > 这么写是为啥?运行过程是怎样的

这么写是为啥?运行过程是怎样的

WBOY
Release: 2016-06-13 13:19:52
Original
664 people have browsed it

这样写是为啥?运行过程是怎样的?

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php>
    try
    {
      if(xxx)
      {
>
//html代码
<?php>
      }   //end of if
    }   //end of try
>

Copy after login


------解决方案--------------------

try
{
if(xxx)
{
>
//html代码


我不清楚你说的断开写是什么情况,
但在 ?>和------解决方案--------------------
运行过程就是从上至下,这么写的好处无非是省略了PHP的echo,然后在一定程度上使得程序的结构比纯PHP代码要清晰。所有的代码还是归PHP解释器解析的。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template