久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <small id='P9cqs'></small><noframes id='P9cqs'>

        <tfoot id='P9cqs'></tfoot>
      1. <i id='P9cqs'><tr id='P9cqs'><dt id='P9cqs'><q id='P9cqs'><span id='P9cqs'><b id='P9cqs'><form id='P9cqs'><ins id='P9cqs'></ins><ul id='P9cqs'></ul><sub id='P9cqs'></sub></form><legend id='P9cqs'></legend><bdo id='P9cqs'><pre id='P9cqs'><center id='P9cqs'></center></pre></bdo></b><th id='P9cqs'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='P9cqs'><tfoot id='P9cqs'></tfoot><dl id='P9cqs'><fieldset id='P9cqs'></fieldset></dl></div>
        • <bdo id='P9cqs'></bdo><ul id='P9cqs'></ul>
        <legend id='P9cqs'><style id='P9cqs'><dir id='P9cqs'><q id='P9cqs'></q></dir></style></legend>

        奇怪的回聲,PHP 中的打印行為?

        Strange echo, print behaviour in PHP?(奇怪的回聲,PHP 中的打印行為?)
        <tfoot id='eoh0P'></tfoot>

        <small id='eoh0P'></small><noframes id='eoh0P'>

              • <bdo id='eoh0P'></bdo><ul id='eoh0P'></ul>

              • <i id='eoh0P'><tr id='eoh0P'><dt id='eoh0P'><q id='eoh0P'><span id='eoh0P'><b id='eoh0P'><form id='eoh0P'><ins id='eoh0P'></ins><ul id='eoh0P'></ul><sub id='eoh0P'></sub></form><legend id='eoh0P'></legend><bdo id='eoh0P'><pre id='eoh0P'><center id='eoh0P'></center></pre></bdo></b><th id='eoh0P'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eoh0P'><tfoot id='eoh0P'></tfoot><dl id='eoh0P'><fieldset id='eoh0P'></fieldset></dl></div>

                  <tbody id='eoh0P'></tbody>

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

                  本文介紹了奇怪的回聲,PHP 中的打印行為?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  下面的代碼輸出43211,為什么?

                  The following code outputs 43211, why?

                    echo print('3').'2'.print('4');
                  

                  推薦答案

                  您的語句將解析為人類,如下所示.

                  Your statement parses to humans as follows.

                  回顯由以下組成的連接字符串:

                  Echo a concatenated string composed of:

                  1. 函數print('3')的結果,返回true,字符串化為1
                  2. 字符串'2'
                  3. 函數print('4')的結果,返回true,字符串化為1
                  1. The result of the function print('3'), which will return true, which gets stringified to 1
                  2. The string '2'
                  3. The result of the function print('4'), which will return true, which gets stringified to 1

                  現在,這里的操作順序真的很有趣,根本不能以43211結尾!讓我們嘗試一個變體來找出問題所在.

                  Now, the order of operations is really funny here, that can't end up with 43211 at all! Let's try a variant to figure out what's going wrong.

                  echo '1' . print('2') . '3' . print('4') . '5';
                  

                  這產生 4523111

                  PHP 將其解析為:

                  echo '1' . (print('2' . '3')) . (print('4' . '5'));
                  

                  賓果游戲!左邊的 print 首先被評估,打印 '45',這給我們留下了

                  Bingo! The print on the left get evaluated first, printing '45', which leaves us

                  echo '1' . (print('2' . '3')) . '1';
                  

                  然后左邊的 print 被計算,所以我們現在打印了 '4523',剩下

                  Then the left print gets evaluated, so we've now printed '4523', leaving us with

                  echo '1' . '1' . '1';
                  

                  成功.4523111.

                  讓我們分解一下你對怪異的陳述.

                  Let's break down your statement of weirdness.

                  echo print('3') . '2' . print('4');
                  

                  這將首先打印 '4',留給我們

                  This will print the '4' first, leaving us with

                  echo print('3' . '2' . '1');
                  

                  然后計算下一個打印語句,這意味著我們現在已經打印了'4321',剩下

                  Then the next print statement is evaluated, which means we've now printed '4321', leaving us with

                  echo '1';
                  

                  因此,43211.

                  我強烈建議不要回顯print的結果,也不要print的結果回聲.這樣做是非常荒謬的.

                  I would highly suggest not echoing the result of a print, nor printing the results of an echo. Doing so is highly nonsensical to begin with.

                  經過進一步審查,我實際上并不完全確定 PHP 如何解析這些廢話中的任何一個.我不會再去想它了,它會傷到我的大腦.

                  Upon further review, I'm actually not entirely sure how PHP is parsing either of these bits of nonsense. I'm not going to think about it any further, it hurts my brain.

                  這篇關于奇怪的回聲,PHP 中的打印行為?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                    • <bdo id='Qeb4R'></bdo><ul id='Qeb4R'></ul>
                        <i id='Qeb4R'><tr id='Qeb4R'><dt id='Qeb4R'><q id='Qeb4R'><span id='Qeb4R'><b id='Qeb4R'><form id='Qeb4R'><ins id='Qeb4R'></ins><ul id='Qeb4R'></ul><sub id='Qeb4R'></sub></form><legend id='Qeb4R'></legend><bdo id='Qeb4R'><pre id='Qeb4R'><center id='Qeb4R'></center></pre></bdo></b><th id='Qeb4R'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Qeb4R'><tfoot id='Qeb4R'></tfoot><dl id='Qeb4R'><fieldset id='Qeb4R'></fieldset></dl></div>

                            <tbody id='Qeb4R'></tbody>

                          <small id='Qeb4R'></small><noframes id='Qeb4R'>

                          <tfoot id='Qeb4R'></tfoot>

                            <legend id='Qeb4R'><style id='Qeb4R'><dir id='Qeb4R'><q id='Qeb4R'></q></dir></style></legend>
                            主站蜘蛛池模板: 国产a视频 | 亚洲欧洲在线观看视频 | 天天天天天天操 | av在线视 | 精品国产一区二区在线 | 国产精品久久久一区二区三区 | 99热成人在线 | 羞羞的视频免费观看 | 91精品国模一区二区三区 | 成人av免费 | 成人国产精品入口免费视频 | 色婷婷亚洲国产女人的天堂 | 午夜羞羞 | h片在线看 | 中文字幕一区二区三区乱码图片 | 黄色小视频入口 | 精品久久久久久久久久 | 精品美女久久久久久免费 | 午夜精品久久久久久久 | 国产一区二区三区四区在线观看 | 欧美亚洲视频在线观看 | 欧美日韩一区二区在线 | 一区二区三区精品在线视频 | 欧美一级二级在线观看 | 久久精品一区二 | 国产一区二区在线视频 | 一区二区精品 | av国产精品毛片一区二区小说 | 国产成人精品免费 | 五月网婷婷| 国产精品久久精品 | 一级美国黄色片 | 午夜影院在线观看免费 | 久久精品国产一区二区电影 | 亚洲欧美一区二区在线观看 | 欧美一区二 | 国产在线观看免费 | 嫩草91在线| 日韩精品免费看 | 亚洲欧美日韩精品久久亚洲区 | 免费视频99 |