Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
解决办法:
比如在类 page 中, 将同名函数 function page(){} 改为 public function __construct(){} 即可.
class page
{
public function __construct($array)
//function page($array)
{}
}
请参考
https://stackoverflow.com/questions/37100373/php-deprecated-methods-with-the-same-name