drisate Posted July 14, 2009 Share Posted July 14, 2009 i have a number like this 07 and i need it to be like this 7 is tehre a premade funtion in php to take out the front 0 ? Quote Link to comment Share on other sites More sharing options...
haku Posted July 14, 2009 Share Posted July 14, 2009 $number = "07"; echo $number . '<br />'; $number = (int) $number; echo $number; The output of this will be: 07 7 Quote Link to comment Share on other sites More sharing options...
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.