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 trialJoy Ahmed
Courses Plus Student 9,687 PointsCannot answer this question correctly - Create a boolean variable named $bool and make it evaluate to true
My answer:
$bool = TRUE; var_dump($bool);
4 Answers
Philip G
14,600 PointsMaybe you habe to echo the var_dump?
$bool = TRUE;
echo var_dump($bool);
Joy Ahmed
Courses Plus Student 9,687 Pointsthanks Philip
Philip G
14,600 PointsNo matter, glad to help/answer :)
MUZ140886 Mandava
4,675 PointsI tried both Phil and Joy's answers and still get a "try again", what could be wrong ?
Arthur Mbirimi
4,560 PointsHie Mandava the code is
$booleanOne = TRUE; echo var_dump($booleanOne);
Ednalyn De Dios
20,259 Points<?php
$a = 5;
$booleanOne = ($a == 5)
?>
Joy Ahmed
Courses Plus Student 9,687 PointsJoy Ahmed
Courses Plus Student 9,687 Pointssorry... there was a technical problem as my answer is correct and it is accepted