I believe you would need to put the HTML tabs inside the heredoc to see the linebreaks. The heredoc puts it straight into the HTML.
I think you would need: <?php echo <<<EOD <br /> This is a heredoc test.<br /> <br /> Test line 2.<br /> Test line 3 with tab.<br /> <br /> EOD; ?> - Brian O'Connor On Jan 30, 2008 4:22 PM, -- rada -- <[EMAIL PROTECTED]> wrote: > Hello all, > > Can anyone help me with heredoc? > I have this code: > > <?php > > echo <<<EOD > > This is a heredoc test. > > Test line 2. > Test line 3 with tab. > > EOD; > ?> > > (I am using PHP5 and zend for editor) and I am expecting to see output > with line breaks. Can't see them though, no matter what I do. The heredoc > just outputs everything on one line, like this: > > This is a heredoc test. Test line 2. Test line 3 with tab. > > Any ideas? I do not have any extraneous characters around the delimiters. > I also thought the problem might be the line break style of my editor (Zend) > but I tried everything: "\n", "\r\n", and "as-is" (whatever that is..) and > still no go. > > Thanks for any help! > Rada Lapsker > > ------------------------------ > Never miss a thing. Make Yahoo your > homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Brian O'Connor
_______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php