<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 錯誤控制運算符 PHP支持一個錯誤控制運算符:@。當將其放置在一個PHP表達式之前,該表達式可能產生的任何錯誤信息都被忽略掉。 如果用 [set\_error\_handler()](http://php.net/manual/zh/function.set-error-handler.php) 設定了自定義的錯誤處理函數,仍然會被調用,但是此錯誤處理函數可以(并且也應該)調用 [error\_reporting()](http://php.net/manual/zh/function.error-reporting.php),而該函數在出錯語句前有 @ 時將返回 0。 如果激活了 [**track\_errors**](http://php.net/manual/zh/errorfunc.configuration.php#ini.track-errors) 特性,表達式所產生的任何錯誤信息都被存放在變量 [$php\_errormsg](http://php.net/manual/zh/reserved.variables.phperrormsg.php) 中。此變量在每次出錯時都會被覆蓋,所以如果想用它的話就要盡早檢查。 ``` <?php /*?Intentional?file?error?*/ $my_file?=?@file?('non_existent_file')?or ????die?("Failed?opening?file:?error?was?'$php_errormsg'"); //?this?works?for?any?expression,?not?just?functions: $value?=?@$cache[$key]; //?will?not?issue?a?notice?if?the?index?$key?doesn't?exist. ?> ``` > **Note**: @ 運算符只對[表達式](http://php.net/manual/zh/language.expressions.php)有效。對新手來說一個簡單的規則就是:如果能從某處得到值,就能在它前面加上 @ 運算符。例如,可以把它放在變量,函數和 [include](http://php.net/manual/zh/function.include.php) 調用,常量,等等之前。不能把它放在函數或類的定義之前,也不能用于條件結構例如 *if* 和 [foreach](http://php.net/manual/zh/control-structures.foreach.php) 等。 參見 [error\_reporting()](http://php.net/manual/zh/function.error-reporting.php) 及手冊中[錯誤處理及日志函數](http://php.net/manual/zh/ref.errorfunc.php)的有關章節。 **Warning** 目前的“@”錯誤控制運算符前綴甚至使導致腳本終止的嚴重錯誤的錯誤報告也失效。這意味著如果在某個不存在或者敲錯了字母的函數調用前用了“@”來抑制錯誤信息,那腳本會沒有任何跡象顯示原因而死在那里。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看