Jump to content

Format Number


son

Recommended Posts

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
Just found it, str_pad($Num, 2, "0", STR_PAD_LEFT); is working well...Thanks
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...