|  | Posted by lightgod on 01/21/08 21:24 
On jan. 21, 20:56, Martin <martinval...@comcast.net> wrote:> Is there a setting somewhere that can be set to force an echo
 > statement to automatically issue a new line when outputting html
 > statements?
 >
 > In order to make it easier to read and debug, I'm adding "\n" to the
 > end of such statements so that I can "view source" in a browser.
 > Obviously, when the development of the page is done, I don't really
 > care about such a view but during development it would make things
 > easier to de-bug.
 
 I think...
 
 1 <?php
 2 function echon($text) {
 3    echo $text."\n";
 4 }
 5
 6 echon("lol");
 7 echon("^_^");
 
 This is very-very dusty, and stupid...
 But would interest me.
  Navigation: [Reply to this message] |