PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Automatic NewLine when using echo?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Automatic NewLine when using echo?

Réponse
 
LinkBack Outils de la discussion
Vieux 21/01/2008, 19h56   #1
Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Automatic NewLine when using echo?

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.



  Réponse avec citation
Vieux 21/01/2008, 20h20   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Automatic NewLine when using echo?

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
==================

  Réponse avec citation
Vieux 21/01/2008, 21h24   #3
lightgod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Automatic NewLine when using echo?

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.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11675 seconds with 11 queries