note 16277 rejected from function.str-pad by zak

From: Date: Tue, 23 Oct 2001 18:15:55 +0000
Subject: note 16277 rejected from function.str-pad by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19332@lists.php.net to get a copy of this message
STR_PAD_LEFT does not work, or there is something wrong with this statement: $paddy = str_pad(number_format($count), 7, " ", STR_PAD_LEFT); it produces a string of 7 whitespaces. But if you omit STR_PAD_LEFT, then it produces the correct string, which is padded from right.

« previous php.notes (#19332) next »