Re: line feed

From: Date: Fri, 04 Mar 2005 14:46:21 +0000
Subject: Re: line feed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209981@lists.php.net to get a copy of this message
On Fri, 04 Mar 2005 14:38:20 +0000, Bruno Santos <bvsantos@hal.min-saude.pt> wrote: > Hello. > > How do i print a line return using the echo command, for when i see the > page source, > i get the code line by line and not all in the same line. > > using double quotes ( " ), i can put \n at the end and i get the result > i want, > but, using sinle quotes ( ' ), \n doesnt work. Maybe you could use the HEREDOC format? echo <<<END <table border="0" width="100%"> <tr><td>some table stuff</td></tr> </table> END;

« previous php.general (#209981) next »