How do I number format this?

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

How do I number format this?

Postby seomadness » Fri Jun 13, 2014 4:44 am

$total_topics = (int) $db->sql_fetchfield('num_topics');

I've tried this but it only shows the first 2 digits
$total_topics = (int) number_format($db->sql_fetchfield('num_topics'));

the problem I have is that it will just show 10 instead of 10,500
Posts: 16
Joined: Mon Sep 24, 2012 5:58 am


Return to GYM Sitemaps & RSS


  • Related topics
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests