Convert ACF checkbox choices to links [closed]

Here is my final solution for anyone else facing the same problem:

<?php
$values = get_field('services');
if($values)
  {
  echo '<ul>';
  foreach($values as $value)
  {
  echo '<li>' . '<a href="glossary/#' . strtolower(str_replace(' ', '_', $value)) . '"' . '>' . $value . '</a>' . '</li>';
   }
  echo '</ul>';
  }
?>