Although I know that oau2:: getMyopenid () is a method for obtaining the user's openid, would you like to ask if getMyopenid () is a fixed usage? Is there a "& quot;: & quot;" double colon "fixed or has other meanings? I want to know and know why. It is troublesome.
Although I know that oau2:: getMyopenid () is a method for obtaining the user's openid, would you like to ask if getMyopenid () is a fixed usage?
":" Is the double colon fixed or has other meanings? I want to know and know why. It is troublesome.
Reply content:
Although I know that oau2:: getMyopenid () is a method for obtaining the user's openid, would you like to ask if getMyopenid () is a fixed usage?
":" Is the double colon fixed or has other meanings? I want to know and know why. It is troublesome.
-
GetMyopenid () is a method name and a method name in the oau2class. You can understand it as a fixed usage. you can return the corresponding openid to you after processing different parameters according to your input.
-
Double colons indicate that this is a static method. if it is not static, use the-> arrow to point
The range resolution operator (also known as Paamayim nekudow.im) or, more simply, a colon can be used to access static members, class constants, and override attributes and methods in the class.
Nothing is better than the official explanation
Http://php.net/manual/zh/lang...