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 > another "print" adds to the previous line
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
another "print" adds to the previous line

Réponse
 
LinkBack Outils de la discussion
Vieux 15/02/2008, 00h12   #1
Kurda Yon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut another "print" adds to the previous line

Hi,

I am searching for something which is opposite to the "\n".

print "aaa \n bbb";

will output:
aaa
bbb

And I need two print-commands write to one line:
print "aaa";
print "bbb";

Desired output:
aaabbb

Can I reach the goal by putting something after aaa?

Thank you.
  Réponse avec citation
Vieux 15/02/2008, 00h24   #2
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: another "print" adds to the previous line

..oO(Kurda Yon)

>I am searching for something which is opposite to the "\n".


Hmm? The opposite of a line break is ... no line break?

>print "aaa \n bbb";
>
>will output:
>aaa
>bbb


Correct.

>And I need two print-commands write to one line:
>print "aaa";
>print "bbb";
>
>Desired output:
>aaabbb


That's exactly what the two print commands above will do.

Micha
  Réponse avec citation
Vieux 15/02/2008, 00h26   #3
Kurda Yon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: another "print" adds to the previous line

On Feb 14, 7:24 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Kurda Yon)
>
> >I am searching for something which is opposite to the "\n".

>
> Hmm? The opposite of a line break is ... no line break?
>
> >print "aaa \n bbb";

>
> >will output:
> >aaa
> >bbb

>
> Correct.
>
> >And I need two print-commands write to one line:
> >print "aaa";
> >print "bbb";

>
> >Desired output:
> >aaabbb

>
> That's exactly what the two print commands above will do.
>
> Micha


Right. I am stupid. Sorry.
  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 20h41.


É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,08154 seconds with 11 queries