Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

index.php
<?php
$integerOne = 1;
$integerTwo = 2;
$floatOne = 1.5;
$integerOne = $integerOne + 5;
var_dump($integerOne);
$integerTwo = $integerTwo - 1;
var_dump($integerTwo);


$total = $floatOne * $integerOne;
echo($Total);


?>

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.