son Posted October 29, 2009 Share Posted October 29, 2009 I have a drop down for the hour and another one for minutes. I insert data in db and also send an email. For email: How can I automatically add a 0 before number if it is 0-9 (as oppsed to 12)?Son Link to comment Share on other sites More sharing options...
son Posted October 29, 2009 Author Share Posted October 29, 2009 I have a drop down for the hour and another one for minutes. I insert data in db and also send an email. For email: How can I automatically add a 0 before number if it is 0-9 (as oppsed to 12)?SonJust found it, str_pad($Num, 2, "0", STR_PAD_LEFT); is working well...Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.