PHP PHP Basics Unit Converter Manipulating Numbers

Samson Chemir
Samson Chemir
6,604 Points

php basics. Where am I making mistake?

<?php $integerOne = 1; var_dump ($integerOne + 5); $integerTwo = 2; var_dump ($integerTwo - 1); $floatOne = 1.5;

?> <?php

index.php
<?php
$integerOne = 1;
var_dump ($integerOne + 5);
$integerTwo = 2;
var_dump ($integerTwo - 1);
$floatOne = 1.5;

?>
<?php

1 Answer

Stivan Radev
Stivan Radev
7,686 Points
<?php

//Place your code below this comment
$integerOne = 1;
$integerTwo = 2;
$floatOne = 1.5;

$integerOne = $integerOne + 5;

$integerTwo = $integerTwo - 1;

echo $integerOne * $floatOne

?>