keine Leerzeichen als Füllzeichen bei printf

Alles, was PHP betrifft, kann hier besprochen werden.

keine Leerzeichen als Füllzeichen bei printf

Postby Lämmchen » 28. April 2006 18:42

Ganz einfache Frage:

printf("%09s","Hallo"); // gibt aus: 0000Hallo
printf("%'#9s","Hallo"); // gibt aus: ####Hallo

Aber wie benutze ich das Leerzeichen als Füllzeichen ?? :cry:

Danke euch für jeden Hinweis
Lämmchen
Lämmchen
 
Posts: 3
Joined: 06. April 2006 18:16

Postby Wiedmann » 28. April 2006 19:02

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to PHP

Who is online

Users browsing this forum: No registered users and 50 guests