带有计算的PHP数字格式

带有计算的PHP数字格式,php,mysql,Php,Mysql,我在这方面还是比较新的,所以我很抱歉,如果这看起来是一个容易解决的问题,我正在做一个计算,我希望答案在小数点后显示2个数字。现在,它给了我表格上方的结果,而不是替换表格中的数字 这是我目前设置的 Print "<tr>"; Print "<td><center>".$row['Sea']."</center></td> "; Print "<td><center>".$row['Team']."</

我在这方面还是比较新的,所以我很抱歉,如果这看起来是一个容易解决的问题,我正在做一个计算,我希望答案在小数点后显示2个数字。现在,它给了我表格上方的结果,而不是替换表格中的数字

这是我目前设置的

    Print "<tr>";
Print "<td><center>".$row['Sea']."</center></td> ";
Print "<td><center>".$row['Team']."</center></td> ";
Print "<td><center>".$row['GP']."</center></td> ";
Print "<td><center>".$row['Min']."</center></td> ";
$iGAA = $row['GA'] * 60 / $row['Min'];
Print $english_format_number = number_format($iGAA, 2);
Print "<td><center>".$iGAA."</center></td> ";
Print "<td><center>".$row['W']."</center></td> ";
Print "<td><center>".$row['L']."</center></td> ";
Print "<td><center>".$row['OTL']."</center></td> ";
Print "<td><center>".$row['T']."</center></td> ";
Print "<td><center>".$row['SO']."</center></td> ";
Print "<td><center>".$row['GA']."</center></td> ";
Print "<td><center>".$row['SA']."</center></td> ";
Print "<td><center>".$row['PCT']."</center></td> ";
Print "<td><center>".$row['PIM']."</center></td> ";
Print "<td><center>".$row['Assists']."</center></td> ";
}


请告诉我如何修复它,这样我才能得到正确的答案,谢谢。

您打印了错误的变量:

Print "<td><center>".$english_format_number."</center></td> ";