1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

php2种写法

Discussion in '后端开发' started by silasoni, Sep 11, 2005.

  1. silasoni

    silasoni New Member

    Joined:
    Sep 9, 2005
    Messages:
    44
    Likes Received:
    0
    哎 还是n个不明白呀

    为什么有的人这样编写呢?

    echo "<tr>.........</tr>";
    就是说直接写<?php ?>然后在里头里写入html标记

    而不先写基本html标记 然后再写 <? ?> 呢?
     
  2. 小叶

    小叶 New Member

    Joined:
    Sep 4, 2005
    Messages:
    17,941
    Likes Received:
    33
    这个很自由的,,php标签和HTML页面混合,,这样可能会导致代码的可读性较差,,
    php有很成熟的模板系统...