Questions about oau22.

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.