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 trialnmelthead
5,704 PointsWhat did I wrong?
It always shows: Bummer! Are you sure you multiplied right?
<?php
//Place your code below this comment
$integerOne = 1;
$integerTwo = 2;
$integerOne = 1 + 5;
$integerTwo = 2 - 1;
$floatOne = 1.5;
var_dump($integerOne * $floatOne);
?>
2 Answers
Benjamin Larson
34,055 PointsIf you change your "var_dump" to an "echo", it should pass :)
andrewgabriel
18,106 PointsThere is nothing wrong with your code, you are just simply using var_dump instead of echo to print to the screen.
When you are trying to find some hidden information such as values inside a $_POST variable or database then I would use var_dump() however for printing things to the screen which is the case here, then use echo