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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
T_STRINGreferes 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.