<html>
<body>
<?php
for ($i=1; $i<=5; $i++)
{
 echo "<maxmailboxmailnum>10000111</maxmailboxmailnum><br />";
}
?>
</body>
</html>我想让它低音出来是:<maxmailboxmailnum>10000111</maxmailboxmailnum>可实际上打印出来只有:10000111如何解决啊,谢谢了。。

解决方案 »

  1.   

    XHTML的世界里任何标签都是文档。请鼠标右键查看源代码。
      

  2.   

    <html>
    <body>
    <?php
    for ($i=1; $i<=5; $i++)
    {
     echo "&lt;maxmailboxmailnum&gt;10000111&lt;/maxmailboxmailnum&gt;<br />";
    }
    ?>
    </body>
    </html>
      

  3.   

    <html>
    <body>
    <?php
    for ($i=1; $i<=5; $i++)
    {
     $str ="<maxmailboxmailnum>10000111</maxmailboxmailnum><br />"; 
     echo htmlentities($str);
    }
    ?>
    </body>
    </html>