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 Conditionals & Loops Conditionals Challenge

git stray
git stray
2,397 Points

Test system - I'm having trouble with test system

I'm not sure if this is a glitch or if this is me - I'm at a wall - I believe to understand what it is asking but I still get a fail. Please advise.

Thanks

John

Gareth Borcherds
Gareth Borcherds
9,372 Points

Please post the exact question or spot that you are having trouble with, or at least the code you are working on. No one looking at this would know what to do to help you.

git stray
git stray
2,397 Points

Hello Gareth

I have to spots that I'm having issues with:

The first is "conditionals-challenge" Challenge Task 2 of 3 - I've tried multiple variations. <?php $name = "Mike";

if($name == "Mike"){

}

?>

and also tried

<?php $name = "Mike";

if($name == TRUE){

}

?>

The Second place is "php-loops-challenge" Challenge Task 1 of 2 I run this in workspaces and get the names.

<?php $names = array('Mike', 'Chris', 'Jane', 'Bob'); ?> <?php foreach($names as $val) {

    echo "<li>" . $val . "</li>";
        }
    ?>
Logan R
Logan R
22,989 Points

2 other people are having the same issue as you. Either something is messed up (likely) or everyone has forgotten something major >.>

Also, another person is also having trouble with the loops too lol. Your loop should work and your if statement should work.