Malaysian Posted November 1, 2011 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 Link to comment Share on other sites More sharing options...
Larry Posted November 2, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts