On 12 October 2003 23:36, Eugene Lee wrote: > On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: > > > > "1. An optional padding specifier that says what character will be > > used for padding the results to the right string size. This may be > > a space character or a 0 (zero character). The default is to pad > > with spaces. An alternate padding character can be specified by > > prefixing it with a single quote ('). See the examples below." "3. > > An optional number, a width specifier that says how many characters > > (minimum) this conversion should result in." ---- > > http://au.php.net/manual/en/function.sprintf.php > > > > Assume that $price=.65; then the "%0.2f" yields 0.65. > > > > If we follow what the manual says, then can you tell me what the 0 > > is used for? Is it a (optional) paddinng spcifier OR is it a > > (optional) width specifier OR both? And why does it yiled 0.65 > > rather than .65? > > > > (The manual doesn't explain things clear, man.) > > The PHP manual is vague in several sections. I wonder how bug > reports get submitted for it?
http://bugs.php.net/report.php and select "Documentation problem" from the "Type of bug" drop-down. (But read the bug-reporting guidelines at http://php.bugs.php.net/ first!) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php