
请教一个PHP类的成员函数的小问题
为什么我做这一步的时候$this->equ=newarray()就报错?Parseerror:syntaxerror,unexpectedT_ARRAY,expectin...
为什么我做这一步的时候$this->equ=new array()
就报错?Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING or T_VARIABLE or '$' in C:\wamp\www\equ-tool\function\ClassUser.php on line 38
。求解释? 展开
就报错?Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING or T_VARIABLE or '$' in C:\wamp\www\equ-tool\function\ClassUser.php on line 38
。求解释? 展开
2个回答
展开全部
new array()不可以这么用,直接写成$this->equ=array();去掉new这个关键字!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询