Re: Embedding foreach loops

From: Date: Mon, 10 Aug 2009 23:56:20 +0000
Subject: Re: Embedding foreach loops
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-296589@lists.php.net to get a copy of this message
I am using the print function to display my html. I cannot get the line return ( \n ) character to actually push the html onto the next line, it just gets displayed instead. Should I be using echo?
Allen, you off and running again? echo "blah.. \n"; //<-- this will print the literal 'blah.. ' and then a newline into your HTML *source code* echo 'blah.. \n'; //<-- this will print the literal 'blah.. \n' into your HTML *source code* IIRC print is the same as echo. That is not your apparent issue. Say if you are stuck again, and on what exactly. -John

« previous php.general (#296589) next »