PHP’s round
simply returns the rounded value, so you need to assign the number to itself:
<?php
$NumberToCheck = round($NumberToCheck, 0, PHP_ROUND_HALF_UP);
?>
solved PHP if statement after a condition not working
PHP’s round
simply returns the rounded value, so you need to assign the number to itself:
<?php
$NumberToCheck = round($NumberToCheck, 0, PHP_ROUND_HALF_UP);
?>
solved PHP if statement after a condition not working