Adding 10 to a float variable

$floatNumber = 3.5;
$result = $floatNumber + 10;
echo $result; // Output: 13.5

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *