I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varial prehaps?
<?php
$flavor = cookie dough;
echo "<p> Your favourite flavor is ";
echo $flavor;
echo ".</P>";
if ($flavor == "cookie dough") {
echo "<p> Yeah I like cookie dough aswell! </p>";
}
?>