faysalahmed.wordpress.com
Round in PHP
it is float round ( float $val [, int $precision = 0 [, int $mode = PHP_ROUND_HALF_UP ]] ) example: echo round(3.4); // 3 echo round(3.5); // 4 echo round(3.6); // 4 echo round(3.6, 0); // 4 echo r…