Php function methods

Source: Internet
Author: User
Prerequisites for the php function method: write a function as a private one, and then write a getset & nbsp; function to perform operations. Q: Why should I write it as private when it comes to calling? Is there any special purpose? ------ Solution ------------------ do not tangle with this problem too much. if people want to make it private, it means they need to consider security and then leave the get And se php function methods alone.

Premise: write a function as private, and then write a get/set function for operation.

Q: Why should I write it as private when it comes to calling? Is there any special purpose?






------ Solution --------------------
Don't tangle with this problem too much. people need to make it private, which means they need to consider security, and then leave only the get and set interfaces for you.

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.