flyalaska Posted February 11, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
Moderators Kyle Posted February 11, 2013 Moderators Report Share 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 Link to comment Share on other sites More sharing options...
flyalaska Posted February 12, 2013 Author Report Share Posted February 12, 2013 Thank You! Quote Link to comment Share on other sites More sharing options...
CPC900 Posted February 13, 2013 Report Share Posted February 13, 2013 So how would you add that to: <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br /> 1 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted February 13, 2013 Author Report Share 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 Link to comment Share on other sites More sharing options...
CPC900 Posted February 13, 2013 Report Share Posted February 13, 2013 Thanks 1 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.