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 (Retired) PHP Datatypes PHP Datatypes Challenge

Cannot answer this question correctly - Create a boolean variable named $bool and make it evaluate to true

My answer:

$bool = TRUE; var_dump($bool);

sorry... there was a technical problem as my answer is correct and it is accepted

4 Answers

Maybe you habe to echo the var_dump?

$bool = TRUE; 
echo var_dump($bool);

thanks Philip

No matter, glad to help/answer :)

I tried both Phil and Joy's answers and still get a "try again", what could be wrong ?

Hie Mandava the code is

$booleanOne = TRUE; echo var_dump($booleanOne);

<?php

$a = 5;
$booleanOne = ($a == 5)

?>