flyalaska Posted February 11, 2013 Report Posted February 11, 2013 How do I put comas in my stats? My Total Hours look like this " Total Flight Hours:14777.43" and I want to place the coma in there, 14,777.43 Quote
Moderators Kyle Posted February 11, 2013 Moderators Report Posted February 11, 2013 You can do this way... Change the $number var to whatever your getting the number. <?php echo number_format($number); ?> Quote
CPC900 Posted February 13, 2013 Report Posted February 13, 2013 So how would you add that to: <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> 1 Quote
flyalaska Posted February 13, 2013 Author Report Posted February 13, 2013 So how would you add that to: <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> <strong>Total Hours Flown: </strong><?php echo number_format(StatsData::TotalHours(), 0); ?><br /> Quote
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.