PHP中意外的T_VARIABLE是什么? [英] What is unexpected T_VARIABLE in PHP?
本文介绍了PHP中意外的T_VARIABLE是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到此PHP错误:
解析错误:语法错误,意外 T_VARIABLE
Parse error: syntax error, unexpected T_VARIABLE
从此行:
$list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count'];
这行有什么问题吗?
推荐答案
在粘贴的行之前,可能会有分号或方括号缺少一行.
There might be a semicolon or bracket missing a line before your pasted line.
对我来说似乎很好;每个字符串都可以作为数组索引.
It seems fine to me; every string is allowed as an array index.
这篇关于PHP中意外的T_VARIABLE是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文