How do I make php display the first 50 characters of a field in a database? Example: http://www.crudpot.net/main.php - I want to display the headline, date, author, and the first sentence (or so), of the most recent posts in each section of the page. Help 🙂
Is there another way to have an output "1,000,000" (with comma) instead of "1000000". I used sprintf ("%0.2f", $some_word) but this only gave me out like 1000000,00
Check out this function string number_format (float number, int decimals, string dec_point, string thousands_sep)
Maybe this will work number_format(1000000, 0, ",", ",");
/Staffan