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 trial

PHP PHP Basics Unit Converter Manipulating Numbers

Can't figure out how to Multiply in "echo" watched the vids multiple times they don't show it.

Stuck trying to figure out how to multiply in echo as when I try to do it in var_dump I get a syntax error and the videos don't show how to multiply in echo and display your results.

index.php
<?php

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

var_dump( $integerOne);
var_dump( $integerTwo);
var_dump($floatOne);

var_dump( $integerOne += 5);
var_dump( $integerTwo -= 1);







?>

1 Answer

devvoyage
seal-mask
.a{fill-rule:evenodd;}techdegree
devvoyage
Front End Web Development Techdegree Student 15,200 Points

Hi! You're doing great. Just hang in there.

First, you won't need any var_dump for this challenge. You only need an echo statement. The operator you're looking for is the multiplication operand *. This operation is shown in this video at around the 1:03 mark.

So, for the last step you just need to multiply the two numbers and echo it out to the page.

echo($integerOne * $floatOne);

I hope this helps! :sparkles: