久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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運算符"::"、"->"和"=>"的區(qū)別

      談談PHP運算符&quot;::&quot;、&quot;-&gt;&quot;和&quot;=&gt;&quot;的區(qū)別

      最近在學習php時,對"::"、"->"和"=>"三個運算符有點模糊,這里記錄下學習的點滴,也讓自己掌握的更牢固。

      1."::" 運算法

      該運算符是調用一個類中的靜態(tài)成員的方法,如:

       class xxx{   protected static $instance;  self::$instance="111"; //或者 $this::$instance = "222"; }

      2."->"運算符

      該操作符是操作一個類中的成員變量的方法,可以是非static成員變量,如:

       class xxx{   private $test;  $this-test="111"; }

      3."=>"運算符

      該預算付是數(shù)組的key和value映射時使用的運算符。

      語法“index => values”,用逗號分開,定義了索引和值。

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

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