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

index.php
<?php
$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

<noob />
<noob />
16,609 Points

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

Thank you