PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor
原创 52cxy 11-27 16:37 回复数:0

这个是什么问题呢?

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor

class DataUtil
{
    function DataUtil($use = 0)
    {
        $this->use = $use;
    }

改成

class DataUtil
{
    function __construct($use = 0)
    {
        $this->use = $use;
    }




共0条回答
我要回答