Skip to content

Instantly share code, notes, and snippets.

@cheapwebmonkey
Last active August 29, 2015 14:21
Show Gist options
  • Save cheapwebmonkey/ee617e686bf3798a639e to your computer and use it in GitHub Desktop.
Save cheapwebmonkey/ee617e686bf3798a639e to your computer and use it in GitHub Desktop.
Flavor array php + html
<?php
$flavors = array("Vanilla", "Chocolate", "Strawberry", "Spumoni");
?><html>
<body>
<p><?php echo "We have " . count($flavors) . " flavors available. Here's a list:"; ?></p>
<?php foreach ($flavors as $flavor) { ?>
<div><?php echo $flavor; ?></div>
<?php } ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment