php函数方法的有关问题

WBOY
Release: 2016-06-13 11:10:31
Original
892 people have browsed it

php函数方法的问题

前提:将一个函数写成私有的,然后,在写一个get/set 函数进行操作。

问题:尽然早晚要被调用为啥还要写成私有的呢?有啥特殊用意不?






------解决方案--------------------
不要纠结这种问题太多,人家要弄成私有的,说明是要安全考虑,然后只留get和set的接口给你。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template