久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php define函數(shù)的用法是什么

      php define函數(shù)的用法:【define()】函數(shù)定義一個(gè)常量,語法為【define(name,value,case_insensitive)】,定義一個(gè)大小寫敏感的常量,代碼為【define("GREETING","Hello 】。

      php define函數(shù)的用法是什么

      本教程操作環(huán)境:windows7系統(tǒng)、PHP5.6版,DELL G3電腦,該方法適用于所有品牌電腦。

      php define函數(shù)的用法:

      define() 函數(shù)定義一個(gè)常量。

      常量類似變量,不同之處在于:

      • 在設(shè)定以后,常量的值無法更改

      • 常量名不需要開頭的美元符號(hào) ($)

      • 作用域不影響對(duì)常量的訪問

      • 常量值只能是字符串或數(shù)字

      語法

      define(name,value,case_insensitive)

      例子 1

      定義一個(gè)大小寫敏感的常量:

      <?php define("GREETING","Hello world!"); echo constant("GREETING"); ?>

      輸出:

      Hello world!

      例子 2

      定義一個(gè)大小寫不敏感的常量:

      <?php define("GREETING","Hello world!",TRUE); echo constant("greeting"); ?>

      輸出:

      Hello world!

      相關(guān)視頻推薦:PHP編程從入門到精通

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