<tfoot id='jI3XT'></tfoot>
  • <small id='jI3XT'></small><noframes id='jI3XT'>

    <i id='jI3XT'><tr id='jI3XT'><dt id='jI3XT'><q id='jI3XT'><span id='jI3XT'><b id='jI3XT'><form id='jI3XT'><ins id='jI3XT'></ins><ul id='jI3XT'></ul><sub id='jI3XT'></sub></form><legend id='jI3XT'></legend><bdo id='jI3XT'><pre id='jI3XT'><center id='jI3XT'></center></pre></bdo></b><th id='jI3XT'></th></span></q></dt></tr></i><div id='jI3XT'><tfoot id='jI3XT'></tfoot><dl id='jI3XT'><fieldset id='jI3XT'></fieldset></dl></div>
      <bdo id='jI3XT'></bdo><ul id='jI3XT'></ul>
    <legend id='jI3XT'><style id='jI3XT'><dir id='jI3XT'><q id='jI3XT'></q></dir></style></legend>

        PHP 中的新行(“ ")不起作用

        时间:2024-04-12
          <bdo id='oivkY'></bdo><ul id='oivkY'></ul>
            <i id='oivkY'><tr id='oivkY'><dt id='oivkY'><q id='oivkY'><span id='oivkY'><b id='oivkY'><form id='oivkY'><ins id='oivkY'></ins><ul id='oivkY'></ul><sub id='oivkY'></sub></form><legend id='oivkY'></legend><bdo id='oivkY'><pre id='oivkY'><center id='oivkY'></center></pre></bdo></b><th id='oivkY'></th></span></q></dt></tr></i><div id='oivkY'><tfoot id='oivkY'></tfoot><dl id='oivkY'><fieldset id='oivkY'></fieldset></dl></div>
          1. <tfoot id='oivkY'></tfoot>

              • <small id='oivkY'></small><noframes id='oivkY'>

                <legend id='oivkY'><style id='oivkY'><dir id='oivkY'><q id='oivkY'></q></dir></style></legend>
                    <tbody id='oivkY'></tbody>
                  本文介绍了PHP 中的新行(“ ")不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  由于某些奇怪的原因,插入 echo " "; 和其他 scape 序列字符对我不起作用,这就是为什么我只使用 <br/> 代替.

                  For some strange reason, inserting echo " "; and other scape sequence characters are not working for me, that's why I am just using <br /> instead.

                  书籍和其他文档中示例结果的图像看起来还不错.我目前正在使用 XAMPP,并且已经使用了具有相同实际结果的 WAMPP.这是为什么?

                  The images of the results of examples in books and other documentations seems just alright. I'm currently using XAMPP and already used WAMPP with the same actual result. Why is that?

                  在将您的答案与以下内容进行比较后,我似乎无法理解这个概念:PHP 换行符 ( ) 不工作

                  It seems that I cannot understand the concept after comparing your answers with this: PHP Linefeeds ( ) Not Working

                  对不起,我没有意识到上面的链接是指写入文件的 php 代码.我只是想知道为什么我有这些使用 的几个 php 示例程序,即使它在网页中输出.谢谢大家.

                  Sorry I didn't realized that the link above is referring to a php code writing to a file. I just wonder why I have these few php sample programs that uses even though it outputs in a webpage. Thanks everyone.

                  推荐答案

                  当你在浏览器中运行 PHP 脚本时,默认情况下它会呈现为 HTML.如果您使用的书籍另有显示,则代码或插图不准确.您可以使用“查看源代码”查看发送到浏览器的内容,您将看到您的换行符存在.

                  When you run a PHP script in a browser, it will be rendered as HTML by default. If the books you’re using show otherwise, then either the code or the illustration is inaccurate. You can use “view source” to view what was sent to the browser and you’ll see that your line feeds are present.

                  <?php
                  echo "Line 1
                  Line 2";
                  ?>
                  

                  这将在您的浏览器中呈现为:

                  This will render in your browser as:

                  Line 1 Line 2
                  

                  如果您需要向浏览器发送纯文本,您可以使用以下内容:

                  If you need to send plain text to your browser, you can use something like:

                  <?php
                  header('Content-type: text/plain');
                  echo "Line 1
                  Line 2";
                  ?>
                  

                  这将输出:

                  Line 1
                  Line 2
                  

                  PHP Linefeeds ( ) Not Working 是指将输出发送到文件而不是浏览器.

                  PHP Linefeeds ( ) Not Working is referring to sending output to a file rather than the browser.

                  这篇关于PHP 中的新行(“ ")不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    <bdo id='YbBmD'></bdo><ul id='YbBmD'></ul>

                  • <tfoot id='YbBmD'></tfoot>

                    <legend id='YbBmD'><style id='YbBmD'><dir id='YbBmD'><q id='YbBmD'></q></dir></style></legend>

                        <tbody id='YbBmD'></tbody>
                    • <small id='YbBmD'></small><noframes id='YbBmD'>

                      1. <i id='YbBmD'><tr id='YbBmD'><dt id='YbBmD'><q id='YbBmD'><span id='YbBmD'><b id='YbBmD'><form id='YbBmD'><ins id='YbBmD'></ins><ul id='YbBmD'></ul><sub id='YbBmD'></sub></form><legend id='YbBmD'></legend><bdo id='YbBmD'><pre id='YbBmD'><center id='YbBmD'></center></pre></bdo></b><th id='YbBmD'></th></span></q></dt></tr></i><div id='YbBmD'><tfoot id='YbBmD'></tfoot><dl id='YbBmD'><fieldset id='YbBmD'></fieldset></dl></div>