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

What am I doing wrong?

Treehouse says I may not be multiplying correctly, can't figure out what I'd be doing wrong.


//Place your code below this comment
$integerOne = 1;
$integerTwo = 2;

$integerOne += 5;

$floatOne = 1.5;

var_dump($integerOne * $floatOne);

2 Answers

Umesh Ravji
Umesh Ravji
42,361 Points

Hi Matt, the problem is just in the outputting at the end, use echo instead of var dump.

echo($integerOne * $floatOne);
Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there, Matt! Honestly? You're not doing much wrong at all! You're using var_dump to display all the information about a variable to the page including the type. All they're looking for is for you to print out the result of the calculation to the page.

So, if I replace your var_dump with echo, your code passes! Hope this helps! :sparkles: