这是我的类。我正在使用 yii2。PHP 5.6.它无法加载页面,它说
Use of undefined constant 5242880 - assumed '5242880'
class PicturesOfUser extends 'yii'db'ActiveRecord
{
const USER_IMG_SIZE=5242880;
}
当我从这里复制时,我测试了该代码,并且该数字具有其他编码字符或其他编码,但是当我自己重写该数字时,它没有显示错误
const USER_IMG_SIZE = 5242880;