will work just like you want.Code:"</p><hr />\n"
I don't mean to butt in, but I used to do the same thing Bluewalrus. I think it starts because a lot of the time you are doing things like:
And in this case you would have to concatenate the \n because the single quotes are gonna print the literal \n if you don't. So depending on what you are echoing, sometimes you must concatenate, and sometimes you don't have to. It took me a while to get the hang of using single or double quotes, because like you, I like to find one way of doing something that works and stick to it.Code:<?php echo '<p class="class"><a href="/">text</a></p>' . "\n"; ?>



Reply With Quote


Bookmarks