Page 1 of 1

echo inside control problem

Posted: Mon Jun 19, 2006 10:55 am
by pixienick
Hello everyone
What is that problem with echo using

Code: Select all

echo<<<END blah blah 
END;
It dosent always work when inside a control path like a for loop or if statement, why is that?

Thanks

Posted: Mon Jun 19, 2006 11:47 am
by feyd
If there's whitespace before "END;" on the line it won't be found to terminate the heredoc.

Posted: Mon Jun 19, 2006 2:36 pm
by pixienick
Yeah I'm aware of that. It keeps failing inside control structures, has nobody else seen this problem?

Posted: Mon Jun 19, 2006 3:05 pm
by feyd
Post your code that fails.