Populate checkboxes from array

Use the following function to make check-boxes for taxonomies:

function get_terms_chekboxes($taxonomies, $args) {
    $terms = get_terms($taxonomies, $args);
    foreach($terms as $term){
        $output .= '<label for="'.$term->slug.'"><input type="checkbox" id="'.$term->slug.'" name="'.$term->taxonomy.'" value="'.$term->slug.'"> '.$term->name.'</label>';
    }
    return $output;
}

echo get_terms_chekboxes('country', $args = array('hide_empty'=>true));

Hope this will help you!