我收到了这个错误:Parse error: syntax error, unexpected '(', expecting ')' on line 92。但是,当我更改implode()
为时""
,一切都神奇地再次起作用。
这是我的代码:
$arrayThings = array(
other entries...
"border" => array(
"category" => "bgBorders",
"verify" => array("func" => "verifyBool", "error" => "errormessage"),
"type" => XenForo_Input::UINT,
"permission" => "canUseBorderIn%sM",
"format" => array(
"span" => array(
"attr" => array(
"style" => array(
"border" => implode(" ", self::$borderDefaults), // L92
)
)
)
),
),
....other entries
)
我已经手动验证了其他条目的语法是否正确。我正在使用 PHP 5.4.15。有人知道问题吗?