[PHP-DEV] Bug #583 Updated: sprintf not allowing zero padding on decimal numbers From: Bug Database (php-dev <email protected>)
Date: 07/27/98

ID: 583
Updated by: jim
Reported By: stef <email protected>
Status: Analyzed
Bug Type: Misbehaving function
Assigned To:
Comments:

Unfortunately, supporting %.# for decimal numbers isn't quite trivial -- for example, sprintf("%3.2d", 8) produces " 08". (Not that this can't or shouldn't be supported, just making note of the fact that it isn't trivial and requires handling cases like that.)

Full Bug description available at: http://ca.php.net/bugs.php3?id=583