troubleshooting Question

Inserting line returns in PHP echo statements

Avatar of steva
steva asked on
PHP
15 Comments3 Solutions481 ViewsLast Modified:
I'm having trouble getting echo to echo a CRLF.  I have a loop below, for example, and each time through I'd like to display the index value.

$eol = "\n\r\t";
for($i=1; $i<=$maxorderID; $i++) {

	echo "$eol pulling record $i";

	      etc.

I've also tried putting the \n\r\t directly in the echo.

Could someone point out the way to get the PHP echo to start on a new line?

Thanks.
ASKER CERTIFIED SOLUTION
StingRaY

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros