PHP号码添加错误

时间:2018-03-26 01:50:55

标签: php

$("#btnClassPSuccess").click(function () {
  $('#divClass').addClass("sucess");
});

我想总结数字$score = $_GET['score']; $ht = $ayarcek['total']; $total = $ht+$score; echo $total; Result: 6.0E-8 1.000000 + 0,但是当我收集数据时,我得到了上述结果。我哪里做错了?

1 个答案:

答案 0 :(得分:1)

我解决了这个问题。它对呼叫者有用

$score = $_GET['score'];
$ht = $ayarcek['total'];
$cek = $ht+$score;
$total = sprintf('%.8f', $cek);