Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialManuel Gutierrez
1,028 Pointsadding and sumbtracting
Create Two Integer Variables - The first will be named $integerOne with a value of 1 and the second will be named $integerTwo with a value of 2
Create a New Float Variable named $floatOne with a value of 1.5.
ADD 5 to integer 1 SUBTRACT 1 from integer 2
<?php
//Place your code below this comment
$integerOne = 1 +5;
var_dump($integerOne +5);
$integerTwo = 2;
var_dump($integerTwo -1);
$floatOne = 1.5;
?>
1 Answer
KRIS NIKOLAISEN
54,971 PointsThere is a note in the challenge:
Important: In each task of this code challenge, the code you write should be added to the code from the previous task.
which doesn't mean modify the code for task 1. You will need to keep the code for task 1 in addition to the code for task 2