note 19234 added to function.sprintf

From: Date: Wed, 20 Feb 2002 13:54:47 +0000
Subject: note 19234 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-26845@lists.php.net to get a copy of this message
To have a string with leading zeros use this: $string_i = sprintf("%04s",$value) Gives you an output with leading zeros and 4 digits. i.e. 0001 0002 ... 0010 an so on -- http://www.php.net/manual/en/function.sprintf.php http://master.php.net/manage/user-notes.php?action=edit+19234 http://master.php.net/manage/user-notes.php?action=delete+19234 http://master.php.net/manage/user-notes.php?action=reject+19234

« previous php.notes (#26845) next »