久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php怎么清除http頭

      在php中可以通過(guò)header_remove函數(shù)清除http頭,其語(yǔ)法是“header_remove ([ string $name ] ) : void”,表示刪除之前用header()設(shè)置的HTTP頭。

      php怎么清除http頭

      本文操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      php怎么清除http頭?

      header_remove

      (PHP 5 >= 5.3.0, PHP 7)

      header_remove — 刪除之前設(shè)置的 HTTP 頭

      說(shuō)明

      header_remove ([ string $name ] ) : void

      刪除之前用 header() 設(shè)置的 HTTP 頭。

      參數(shù)

      name

      要移除的頭名稱。

      Note: 參數(shù)不分大小寫。

      返回值

      沒有返回值。

      范例

      Example #1 取消指定的頭

      <?php header("X-Foo: Bar"); header("X-Bar: Baz"); header_remove("X-Foo");  ?>

      以上例程的輸出類似于:

      X-Bar: Baz

      Example #2 取消之前全部指定的頭

      <?php header("X-Foo: Bar"); header("X-Bar: Baz"); header_remove();  ?>

      注:

      Caution

      本函數(shù)會(huì)刪除所有 PHP 設(shè)置的頭, 包括 Cookie、Session 和 X-Powered-By。

      Note:

      數(shù)據(jù)頭只會(huì)在SAPI支持時(shí)得到處理和輸出。

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)