[ad_1]
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);
?>
[ad_2]
solved PHP if statement after a condition not working
[ad_1]
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);
?>
[ad_2]
solved PHP if statement after a condition not working