WordPress – Display array data of a child

This will show the checkboxes that have been ticked (much simpler!!):

                    <?php
$categories = get_field('categories');
$elements = array();
foreach($categories as $category) {
    //do something
    $elements[] = '<a href="https://wordpress.stackexchange.com/tags/design/" . strtolower($category) . '" title="' . $category . '">' . $category .'</a>';
}
echo implode(',', $elements);
?>