PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
pixienick
Forum Newbie
Posts: 12 Joined: Sun May 28, 2006 6:58 pm
Post
by pixienick » Mon Jun 19, 2006 10:55 am
Hello everyone
What is that problem with echo using
It dosent always work when inside a control path like a for loop or if statement, why is that?
Thanks
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Jun 19, 2006 11:47 am
If there's whitespace before "END;" on the line it won't be found to terminate the heredoc.
pixienick
Forum Newbie
Posts: 12 Joined: Sun May 28, 2006 6:58 pm
Post
by pixienick » Mon Jun 19, 2006 2:36 pm
Yeah I'm aware of that. It keeps failing inside control structures, has nobody else seen this problem?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Jun 19, 2006 3:05 pm
Post your code that fails.