search

Home  >  Q&A  >  body text

Why is an if{ used in the if statement? > <?}

if{? > <?} What is the usage in the brackets? Have you never seen it?

❤非酋❤非酋2649 days ago1588

reply all(4)I'll reply

  • *菰劍

    *菰劍2017-09-26 13:20:55

    Mixed php and html, meaning <php space php>!!!

    reply
    0
  • Eli

    Eli2017-09-26 09:10:27

    Write the PHP syntax in the template

    reply
    0
  • PHP中文网

    PHP中文网2017-09-26 09:09:07

    ? > <? Behind <? is the abbreviation of <?php. HTML code snippets can be inserted between ?><?php, just like Servlet in Java. This is a procedural way of writing, a mix of php and html. For formal projects, it is recommended to use a template engine or framework and a three-layer separation design pattern.

    reply
    1
  • ❤非酋

    But I suddenly found a new problem, which is this code. When running, it prompts Parse error: syntax error, unexpected end of file in D:\phpStudy\WWW\news\admin\list.php on line 338. Of course, the 338 lines of code are just , and there must be nothing wrong. I deleted them one by one and checked, and found that there were errors in the code on the previous page and the next page. Does the teacher know what is going on?

    ❤非酋 · 2017-10-05 18:53:09
    ❤非酋

    But I suddenly found a new problem, which is this code. When running, it prompts Parse error: syntax error, unexpected end of file in D:\phpStudy\WWW\news\admin\list.php on line 338. Of course, the 338 lines of code are just , and there must be nothing wrong. I deleted them one by one and checked, and found that there were errors in the code on the previous page and the next page. Does the teacher know what is going on?

    ❤非酋 · 2017-10-05 18:53:11
  • phpcn_u35066

    phpcn_u350662017-09-26 08:19:24

    Because I just happened to meet you, I can make up 20 words. Uh-huh-huh-huh-huh-huh-huh-huh-huh-huh

    reply
    0
  • Cancelreply