Alexey Korovenkov3,653 Points
PHP task. This should be correct.
This should be correct. I do not understand what's wrong.
Of course, English is a foreign language for me, but code should be correct. And I do not see the preview, only white screen.
<?php $flavor = "flavor"; echo "<p>Your favorite $flavor of ice cream is "; echo "vanilla"; echo ".</p>"; echo "<p>Hal's favorite $flavor is cookie dough, also!</p>"; ?>
Don Macarthur28,278 Points
You seem to be misreading the question.
The first part of the challenge is to create a variable named flavor and assign your favourite flavour to it.
So your code at Step 1 should be something like:-
$flavor = "some flavour";
In Step 2 of the challenge you then need to echo out that variable instead of echoing the string "vanilla" as you have.
As your code is written on your second post you have a variable of $flavor which is just an empty string. Then when you echo that variable on the next line it just echoes the empty string.
Hope that makes sense and helps :-)