|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Martin 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. > > > > No, Just add a "\n" at the end of the echo(). Plus I don't always want a newline at the end of an echo! -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|