PHP Build a Basic PHP Website (2018) Building a Media Library in PHP Variables and Conditionals

how do I change text to display the value stored in the variable?

I'm in the Build a Basic PHP Website section

$flavor ="vanilla";

echo "<p>Your favorite flavor of ice cream is ";
echo "vanilla";
echo ".</p>";
echo "<p>Hal's favorite flavor is cookie dough, also!</p>";


1 Answer

You just need to echo the $flavor variable. like so : echo $flavor

Thank you