方法定义:
protected function get($para1, $para1, $para1){ ... }
方法调用
get('1', '2');
正常来说这样调用应该会报错的。
我在本地(PHP 7.1)调用就报错了.在我的服务器(PHP 7.0)上调用就没报错,
这是什么原因导致的?
数据分析师2017-10-01 00:37:03
About the problem that the number of parameters in the PHP method is incorrect and the call error is reported? -PHP Chinese website Q&A-About the problem that the number of parameters passed to the PHP method is incorrect and an error is reported when the call is made? -PHP Chinese website Q&A
Let’s take a look and learn.