Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

412 of 1148 people (36%) answered Yes
Recently 7 of 10 people (70%) answered Yes


"Parse Error: parse error, unexpected T_SL" What does that mean?

Nov 28th, 2008 08:45
Michael Risser, ha mo, desi ignatius, Paul Meier, Antonio DeLaCruz,

T_SL is the /T/oken for the /S/hift /L/eft operator (<<). 
so "unexpected T_SL" means there is an occurence of << that is 
syntactically incorrect. this commonly happens when you use heredoc 
syntax ("<<<") and have whitespace before or after the closing 
identifier, or after the opening identifier. See
ring.syntax.heredoc for details.
It is also common when a source code management system (CVS or
Subversion) cannot resolve a merge and has to place <<<<<<<< markers in
the code.