First of all T_CONSTANT_ENCAPSED_STRING
is the name of a constant in PHP. It represents a number (see this in different PHP versions).
T_
is the prefix for Token (it does not represent an error but a token). A token is when a PHP file is parsed, the text - letter for letter - is arranged into tokens. This helps the PHP parser to better decipher the syntax from the text.
When the parser then turned the source-text into tokens and it stumbles over a token the parser didn't expect, an error message is created giving the name of the token that was not expected. For example the token in your question: T_CONSTANT_ENCAPSED_STRING
.
This on it's own is a bit cryptic and the error message itself doesn't explain the token at all, however the PHP manual has a list of all tokens: http://php.net/tokens.
So what you got here is the token with the number that is also represented by the constant named T_CONSTANT_ENCAPSED_STRING
. Apart from the T_
prefix the rest of the constant name does not follow much of a sheme which is why - if you want to find out more about a specific T_...
constant - you need to consult the token list at http://php.net/tokens.