PHP PHP Basics Unit Converter Manipulating Numbers

Brighton Maseta
Brighton Maseta
2,046 Points

hie guys im stuck what is being required on this question "Add 5 to $integerOne. Subtract 1 from $integerTwo.'

hie guys im stuck what is being required on this question "Add 5 to $integerOne. Subtract 1 from $integerTwo.

index.php
<?php

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

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,979 Points

Add 5 to $integerOne means update $integerOne to $integerOne + 5

Subtract 1 from $integerTwo means update $integerTwo to $integerTwo - 1

Your initial value for $integerOne should be 1.