faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

398 of 1126 people (35%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

"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 
http://www.php.net/manual/en/language.types.string.php#language.types.st
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.
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.mozmar.com
http://www.yamot.com
http://www.templatestemp.com