MyBB Support

Statistics of forum

Submitted by Fstyle, , Thread ID: 13758

Thread Closed

RE: Statistics of forum

#5
PHP Code:
$numbers = array(1000,2000);


function 
format_number($number) {
    if(
$number >= 1000) {
       return 
$number/1000 "k";  
    }
    else {
        return 
$number;
    }
}


foreach(
$numbers as $number) {
    echo 
format_number($number);
    echo 
"<br>";
}

?>
1

Users browsing this thread: 2 Guest(s)