freshJet Posted November 4, 2011 Report Posted November 4, 2011 I want to separate numbers in stats like 30000 -> 30,000. How do I do it? Quote
Tom Posted November 4, 2011 Report Posted November 4, 2011 I want to separate numbers in stats like 30000 -> 30,000. How do I do it? number_format($number); Quote
freshJet Posted November 5, 2011 Author Report Posted November 5, 2011 Didn't work. I take it it's <?php number_format($number); echo StatsData::TotalPaxCarried(); ?> Quote
Tom Posted November 5, 2011 Report 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
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.