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 trialDanny Lowe
Courses Plus Student 886 PointsI've checked my code in the workspace and it works fine in there but in the question its not working
it comes up as saying make sure you use "echo" instead of var_dump which if you look at the code I am.
<?php
//Place your code below this comment
$integerOne = 1;
$integerTwo = 2;
$floatOne = 1.5;
$integerOne = ($integerOne + 5);
var_dump ($integerOne);
$integerTwo = ($integerTwo - 1);
var_dump ($intergerTwo);
$answer = $integerOne * $floatOne;
echo $answer;
?>
2 Answers
Jennifer Nordell
Treehouse TeacherHi there, Danny Lowe ! I tried your code without the var_dump
s and it passes the challenge over on my end. I'd suggest restarting the challenge from the start, paste in the code you have above, erase the var_dump
s and check it again. It sounds like something may be cached either on your side or server-side.
Your code works beautifully for me!
Zimri Leijen
11,835 Pointsyou still have 2 var_dumps
Danny Lowe
Courses Plus Student 886 Pointseven if I blank them out it still comes up with make sure you use "echo" and not "var_dump"
Danny Lowe
Courses Plus Student 886 PointsDanny Lowe
Courses Plus Student 886 Pointsyeah I sorted it many thanks