refiking Posted November 18, 2008 Share Posted November 18, 2008 I receive height from a csv file in the 6'11 format. I need to know how i can convert this into inches (83 in this case). I was thinking of seperating each string, but that won't work because some might be 10'6 and others 6'10, which would not be accurate. Link to comment https://forums.phpfreaks.com/topic/133152-convert-height-before-storing-in-db/ Share on other sites More sharing options...
apulmca Posted November 18, 2008 Share Posted November 18, 2008 Refiking, Without string slice, you can't do it. So, First ensure the format for data: 6'10 or 10'6(which means to 6 feet and 10 inches). Thanks PHPOpenSource Link to comment https://forums.phpfreaks.com/topic/133152-convert-height-before-storing-in-db/#findComment-692551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.