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 Daily Exercise Program True PHP

Walter Cortez
Walter Cortez
4,071 Points

I'm not understanding this question...

Not understanding what they are asking for here...

<?php $a = 5; //Place your code below this comment

$booleanOne = true; $booleanTwo "5";

var_dump($a === $booleanTwo);

?>

index.php
<?php
$a = 5;
//Place your code below this comment

$booleanOne = true;
$booleanTwo "5";

var_dump($a === $booleanTwo);

?>

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! First, the vardump is not needed. Secondly, $booleanTwo should not be set to "5". It should be set to the comparison of $a and "5".

Here's an example: If I wanted to set a variable $y equal to the comparison of 10 and "10", I could write it this way:

$y = 10 === "10";

Give it another go with these hints in mind! Good luck! :sparkles:

Walter Cortez
Walter Cortez
4,071 Points

Ok I see that thanks Jennifer!

Happy Coding!

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey Walter,

You are on the right track, but the challenge did not ask you to var_dump. The first Task, you have correct, but the second task (which is essentially the same as the first) shouldn't have a var_dump. It only wants an assignment.

Below is the corrected code for you to review. I hope it makes sense. :) :dizzy:

<?php
$a = 5;
//Place your code below this comment
$booleanOne = true;
$booleanTwo = $a === "5";
?>

Keep Coding!

Walter Cortez
Walter Cortez
4,071 Points

I see that Jason, I was having trouble understanding the question. But know I see what they meant to ask.

Thank you very much!

Happy Coding!