1414mark1414 Posted July 23, 2008 Share Posted July 23, 2008 how can I make that every number that ends with 3 0's will display with a k example: 1000=1kThanks1414mark1414 Link to comment Share on other sites More sharing options...
justsomeguy Posted July 23, 2008 Share Posted July 23, 2008 if ($num % 1000 == 0 && $num > 0) $num = floor($num / 1000) . 'k'; Link to comment Share on other sites More sharing options...
1414mark1414 Posted July 25, 2008 Author Share Posted July 25, 2008 It works but the "k" doesn't wanna show up :S Link to comment Share on other sites More sharing options...
justsomeguy Posted July 26, 2008 Share Posted July 26, 2008 It's being added to the string right there, you must be doing something else with the variable that is removing that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.