>' in php and mysql

This question already has an answer here:

  • What Does This Mean in PHP -> or => [duplicate] 4 answers
  • Reference — What does this symbol mean in PHP? 18 answers

  • PHP has two object operators.

    The first, -> , is used when you want to call a method on an instance or access an instance property.

    The second, :: , is used when you want to call a static method, access a static variable, or call a parent class's version of a method within a child class.

    source: Where do we use the object operator "->" in PHP?


    在PHP中, - >运算符用于调用成员函数或成员变量。

    链接地址: http://www.djcxy.com/p/58156.html

    上一篇: 需要新鲜的眼睛

    下一篇: >'在PHP和MySQL