Can someone explain what the T_STRING error is in php?
Its is found in many php error messages, but what exactly is a T_STRING?
Can someone explain what the T_STRING error is in php?
Its is found in many php error messages, but what exactly is a T_STRING?
T_STRING
referes to a literal string object inside the scripts source code. Just like language constructs (print, if, ...) they have a special meaning on a syntactical level.
So an error mentioning something like an 'unexpected T_STRING' usually points towards a syntax error where the compiler found a string where it expected something else, typically a closing bracket or something else.