Source Code for /public/appendix-samples/fruity-links.php

<?php
$images = [
  'apple', 'bananas', 'blackberries', 'cherry', 'kiwi',
  'lemon', 'orange', 'pear', 'pineapple', 'watermelon'
];

echo '<ol>';
foreach( $images as $image ) {
  ?>

  <li>
    <a href="//php.danq.dev/img/fruit/<?php echo $image; ?>.jpg">
      <?php echo $image; ?>
    </a>
  </li>

  <?php
}
echo '</ol>';