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 Arrays and Control Structures PHP Loops Todo App

Suggestion for more detailed output of var_dump (video 7:15)

If anyone struggles with the comparison of the var_dumps from minute 7:15 .. I recommend you to try something like this insted of var_dump all three in one:

echo '<pre>';
    echo 'var_dump $status:' . "\t"  . "\t" ;
            var_dump($status);
    echo 'var_dump boolval(\'all\'):'  . "\t" ;
            var_dump(boolval('all'));
    //echo 'var_dump $status == \'all\':'  . "\t"  ;
            //var_dump($status == 'all');
    echo 'var_dump $status === \'all\':'  . "\t"  ;
            var_dump($status === 'all');
echo '</pre>';

Hope this helps one or the other . Cheers