3/6 What's wrong?


#1







<?php
$fruit = "Apple";

switch ($fruit) {
    case'Apple':
        echo "Yummy.";
        break;
default:
    echo "Yaak";
}

?>
</body>


@cadecodes @leonhard_wettengmx_n


#2

you use the switch statement, you should have used if/elseif or else. not switch and case


#3

switch ($fruit) {
case'Apple':
echo "Yummy.";
break;
default:
break;
}

This worked for me. I alsi tried to echo a string but for some reason Codeacademy doesn't let you do that.