久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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ù)的使用:1、在設定以后,常量的值無法更改;2、常量名不需要開頭的美元符號 【$】;3、作用域不影響對常量的訪問;4、常量值只能是字符串或數(shù)字。

      php中define修改函數(shù)如何使用?

      php中define修改函數(shù)的使用:

      定義和用法

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

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

      • 在設定以后,常量的值無法更改

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

      • 作用域不影響對常量的訪問

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

      語法

      define(name,value,case_insensitive)

      php中define修改函數(shù)如何使用?

      例子 1

      定義一個大小寫敏感的常量:

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

      輸出:

      Hello world!

      例子 2

      定義一個大小寫不敏感的常量:

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

      輸出:

      Hello world!

      相關學習推薦:PHP編程從入門到精通

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