note 47208 deleted from function.round by tularis
| From: | tularis@php.net | Date: | Sat, 06 Nov 2004 09:36:18 +0000 |
| Subject: | note 47208 deleted from function.round by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80188@lists.php.net to get a copy of this message | ||
Note Submitter: outpost at outpostgamers dot com
----
Many forums have points system. Heres a basic idea of it...
function getpoints($string){
$divide = 3;
$strlen = strlen($string);
$points = $strlen / $divide;
$points = round($points);
}
And $points is your amount of points accumualted by the post. If you want more and less of points to
be added for each post. Just change the $divide To what ever number, Less = More, More = Less
----
Reason: useless example