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 trial

PHP PHP Basics Unit Converter Manipulating Numbers

Danny Lowe
PLUS
Danny Lowe
Courses Plus Student 886 Points

I'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.

index.php
<?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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Danny Lowe ! I tried your code without the var_dumps 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_dumps and check it again. It sounds like something may be cached either on your side or server-side.

Your code works beautifully for me! :sparkles:

you still have 2 var_dumps

Danny Lowe
Danny Lowe
Courses Plus Student 886 Points

even if I blank them out it still comes up with make sure you use "echo" and not "var_dump"