Malaysian 1 Posted November 1, 2011 Report Share Posted November 1, 2011 Hi, Larry, please help me Printf ( " Cost is: $%01.2f ", $cost ) ; Can I know what does the "01" mean ? Thanks for your time Quote Link to post Share on other sites
Larry 433 Posted November 2, 2011 Report Share Posted November 2, 2011 The 0 means to pad with zeros. The 1 says that the width should be at least 1 digit. http://us2.php.net/manual/en/function.sprintf.php Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.