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 ? Link to comment https://forums.phpfreaks.com/topic/165884-ez-one/ 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 Link to comment https://forums.phpfreaks.com/topic/165884-ez-one/#findComment-874967 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.