【发布时间】:2011-07-30 00:25:49
【问题描述】:
对象的初始化值数组。
class test{
private $H_headers = array("A","B K ".chr(128),"C","D");
//Why I can not init this value?
...
}
}
Multiple annotations found at this line:
- syntax error, unexpected ','
- syntax error, unexpected '.',
expecting ')'
但通常我可以:
$H_headers = array("A","B K ".chr(128),"C","D");
【问题讨论】:
-
是的,我明白了,但很难理解他们的回答?但对我来说比简单。看看这个我仍然无法解决我的问题。
-
简而言之:你不能在那里使用函数。只是不要在那里使用函数。
标签: php