freshJet Posted November 4, 2011 Report Share Posted November 4, 2011 I want to separate numbers in stats like 30000 -> 30,000. How do I do it? Quote Link to comment Share on other sites More sharing options...
Tom Posted November 4, 2011 Report Share Posted November 4, 2011 I want to separate numbers in stats like 30000 -> 30,000. How do I do it? number_format($number); Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 5, 2011 Author Report Share Posted November 5, 2011 Didn't work. I take it it's <?php number_format($number); echo StatsData::TotalPaxCarried(); ?> Quote Link to comment Share on other sites More sharing options...
Tom Posted November 5, 2011 Report Share Posted November 5, 2011 Didn't work. I take it it's <?php number_format($number); echo StatsData::TotalPaxCarried(); ?> In php you pass parameters into the function by putting them in the brackets, like so: <?php echo number_format(StatsData::TotalPaxCarried()); ?> Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 5, 2011 Author Report Share Posted November 5, 2011 Thanks! Works great! 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.