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!

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

Multiplying variables in PHP

Okay, I've formatted this a few different ways and it just tells me to make sure I'm using echo instead of var_dump. And to be fair, I was trying it with var_dump at first. But I can't figure out what could be wrong with this. It seems like it should work to me

$integerOne = 1;
$integerTwo = 2;
$floatOne = 1.5;
$integerOne = $integerOne + 5;
$integerTwo = $integerTwo - 1;

$total = $floatOne * $integerOne;


1 Answer

It appears the checker doesn't like the var_dumps so delete those. Then if you change the case of your total variable to match where it was assigned, echo($Total) to echo($total), you should pass.