重载方法,为什么不直接在类里面写个新的方法而要去使用__call的这种所谓的重载呢?新写个方法不是更加简单更加直接吗?是为了程序的健壮性吗?
数据分析师2017-09-30 23:41:55
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.