Checkbox array in form

Im trying to create a form with multiple checkboxes. I would like to create one array instead of tons of variables. Just to save time when coding these forms. I also would like the form to be sticky. I will email the array value. Could someone help with the code for this? Thanks

Heres an example

<form action="" method="">
    <input type="checkbox" name="my_checkbox[]" value="something 1" />
    <input type="checkbox" name="my_checkbox[]" value="something 2" />
    <input type="checkbox" name="my_checkbox[]" value="something 3" />
    <input type="checkbox" name="my_checkbox[]" value="something 4" />
    <input type="checkbox" name="my_checkbox[]" value="something 5" />
</form>
if (isset($_POST['my_checkbox']) && is_array($_POST['my_checkbox']) && sizeof($_POST['my_checkbox']) > 0){
    foreach($_POST['my_checkbox'] as $checkbox){
        echo $checkbox.'<br />';
    }
} else {
    echo 'Please check at least "1" checkbox!';
}