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 trialshiny peanut
5,113 PointsMultiplying 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
<?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
KRIS NIKOLAISEN
54,971 PointsIt 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.