Jump to content

Format Number


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...