Parse error: syntax error, unexpected T_XXX
Happens when you have T_XXX token in unexpected place, unbalanced (superfluous) parentheses, use of short tag without activating it in php.ini, and many more.
Related Questions:
- Reference: PHP Parse/Syntax Errors; and How to solve them?PHP Parse/Syntax Errors; and How to solve them?
- Parse Error: syntax error: unexpected '{'Parse Error: syntax error: unexpected '{'
- Parse error: Syntax error, unexpected end of file in my PHP codeParse error: Syntax error, unexpected end of file in my PHP code
- Parse error: syntax error, unexpected '<' in - Fix?Parse error: syntax error, unexpected '<' in - Fix?
- Parse error: syntax error, unexpected '?'Parse error: syntax error, unexpected '?'
For further help see:
- http://phpcodechecker.com/ - Which does provide some more helpful explanations on your syntax woes.