Parse error: syntax error, unexpected T_VARIABLE
This is the line that got the error:
$list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count'];
Is there anything wrong?
Parse error: syntax error, unexpected T_VARIABLE
This is the line that got the error:
$list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count'];
Is there anything wrong?
it could be some other line as well, PHP is not always that exact.
I am not sure @ character is allowed in array keys? but probably you are just missing a semicolon on previous line.
there might be a semicolon or bracket missing a line before. your pasted line seems fine to me, every string is allowed as array index