Although know Oauth2::getmyopenid () is to obtain the user OpenID method, want to ask next Getmyopenid () This is a fixed usage?
There is a "::" Double colon is a fixed wording or have other meanings? Want to know it and know why. Trouble the great God to bother.
Reply content:
Although know Oauth2::getmyopenid () is to obtain the user OpenID method, want to ask next Getmyopenid () This is a fixed usage?
There is a "::" Double colon is a fixed wording or have other meanings? Want to know it and know why. Trouble the great God to bother.
Getmyopenid () is a method name, a method name inside a Oauth2 class. You can understand that as a fixed usage, you can return to your OpenID based on the different parameters you pass in.
A double colon means that this is a static method that needs to be used so that if it is not static, the arrow points to the
The scope resolution operator (also known as Paamayim Nekudotayim) or, more simply, a pair of colons, can be used to access static members, class constants, and to override properties and methods in a class.
There's nothing more than an official explanation.
Http://php.net/manual/zh/lang ...