Home  >  Article  >  Backend Development  >  PHP 的写法异常

PHP 的写法异常

WBOY
WBOYOriginal
2016-06-13 12:42:22859browse

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";      //保存目录
这么写错误?那应该怎么写啊



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn