Overloading methods, why not write a new method directly in the class instead of using the so-called overloading of __call? -PHP Chinese website Q&A-Overloaded method, why not write a new method directly in the class instead of using the so-called overloading of __call? -PHP Chinese website Q&A
Overloading methods, why not write a new method directly in the class instead of using the so-called overloading of __call? -PHP Chinese website Q&A-Overloaded method, why not write a new method directly in the class instead of using the so-called overloading of __call? -PHP Chinese website Q&A
Please watch and learn.
这样做减少了函数名的数量,避免了名字空间的污染,对于程序的可读性有很大的好处。