PHP:解析错误:意外的 T_DOUBLE_ARROW [英] PHP: Parse Error: unexpected T_DOUBLE_ARROW
本文介绍了PHP:解析错误:意外的 T_DOUBLE_ARROW的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码给了我错误
解析错误:语法错误,意外的 T_DOUBLE_ARROW,期待 ')' 第 208 行
Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' line 208
我一直收到这个,但它看起来正确吗?第 208 行,这是第二个下行.
I keep getting this but it looks correct? Line 208 which is the second down.
array( "name" => "Colour Scheme",
"desc" => "Select the colour scheme for the theme",
"id" => $shortname."_color_scheme",
"type" => "select",
"options" => array("blue", "red", "green"),
"std" => "blue"),
请多多指教!
谢谢
推荐答案
T_DOUBLE_ARROW
是 =>
的标记,所以你有一个出现在解析器没有的地方没想到吧.
T_DOUBLE_ARROW
is the token for =>
, so you have one which appears somewhere the parser doesn't expect it.
除了后面的 ,
之外,您发布的代码没有错误.
Besides that trailing ,
, there is no error with the code you posted.
这篇关于PHP:解析错误:意外的 T_DOUBLE_ARROW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文