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 trialWalter Cortez
4,071 PointsI'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);
?>
<?php
$a = 5;
//Place your code below this comment
$booleanOne = true;
$booleanTwo "5";
var_dump($a === $booleanTwo);
?>
2 Answers
Jennifer Nordell
Treehouse TeacherHi 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!
Jason Anders
Treehouse Moderator 145,860 PointsHey 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. :)
<?php
$a = 5;
//Place your code below this comment
$booleanOne = true;
$booleanTwo = $a === "5";
?>
Keep Coding!
Walter Cortez
4,071 PointsI 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!
Walter Cortez
4,071 PointsWalter Cortez
4,071 PointsOk I see that thanks Jennifer!
Happy Coding!