Home > Article > Backend Development > PHP 的写法异常
PHP 的写法错误
class Images{
var $inputName; //控件名
var $allowType = array(
'image/gif','image/jpg','image/jpeg','image/png','image/x-png','image/pjpeg'
); //上传类型
var $allowSize = 2097152; //限制大小
var $saveDir = $_SERVER['DOCUMENT_ROOT']."/upfiles/user"; //保存目录
var $isRename = true; //是否重命名,默认为true
var $errID = 0; //错误代码,默认为0
var $errMsg = ""; //错误信息
var $savePath = ""; //保存路径
var $saveDir = $_SERVER['DOCUMENT_ROOT']."/upfiles/user"; //保存目录
这么写错误?那应该怎么写啊