if($number > 0){
echo "the number is positive";
}
elseif($number < 0){
echo "the number is negative";
}
else{
echo "the number is zero";
}
<?php
echo(abs(6.7) . "<br>");
echo(abs(-6.7) . "<br>");
echo(abs(-3) . "<br>");
echo(abs(3));
?>
$value = -9;
echo max($value, 0); // Outputs '0'