Re: printf and unsecable char

From: Date: Mon, 04 Jan 2010 21:30:24 +0000
Subject: Re: printf and unsecable char
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46767@lists.php.net to get a copy of this message
Jean-Philippe Battu wrote:
Hello I would like to print a string formatted on the right side and fill in the left side with the unsecable character [ ] I read in the printf command I could use : printf( "%#30s" , $mystring ) ; to display $mystring string with the character # before (on the left) and I try to replace # by   but I can't find a solution
Do you know the solution to write the command:          printf( "% 30s" , $mystring ) ;
or something like that !
echo str_repeat(' ', 30); (if I understand what you're trying to do correctly). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#46767) next »