久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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中$GLOBALS的用法是什么

      php中$GLOBALS的用法是引用是全局作用域中的可用的全部變量,例如【$GLOBALS["foo"]】。$GLOBALS是一個(gè)包含了全部變量的全局組合數(shù)組。

      php中$GLOBALS的用法是什么

      本文操作環(huán)境:windows10系統(tǒng)、php 7.3、thinkpad t480電腦。

      $GLOBALS是用來(lái)引用全局作用域中可用的全部變量的。它一個(gè)包含了全部變量的全局組合數(shù)組。變量的名字就是數(shù)組的鍵。

      舉例說(shuō)明:

      <?php function test() {     $foo = "local variable";      echo '$foo in global scope: ' . $GLOBALS["foo"] . "n";     echo '$foo in current scope: ' . $foo . "n"; }  $foo = "Example content"; test(); ?>

      以上例程的輸出類似于:

      $foo in global scope: Example content $foo in current scope: local variable

      相關(guān)視頻分享:php視頻教程

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