I am a php noob (very) and i got following code:
<?echo getPointsColor($row["fld_points"])?>
Currently the number 1234 in the database is shown as 1,234, but i would like to have it 1234 (without as thousand seperator).
I found:
$english_format_number = number_format($number, 0, '.', '');
This would make it 1234 instead of 1,234
BUT i don't know how to change my code (first code above) to make it work. Can someone post me how the correct codechange would like like?
Info, here is the the function:
function getPointsColor($points_to_color)
{
$myp = intval($points_to_color);
if($myp <= 0)
$myp = "<font color='#a71212\'>".number_format($myp,'\'')."</font>";
else
$myp = "<font color='#4ea712\'>".number_format($myp,'\'')."</font>";
return $myp;
}