If you want to check that which checkbox checked and which not checked using php . Then you can check this simple code which give you this option.

       // $x = cout($_POST['checkbox']);
        for($x = 0;$x <= 4;$x++)
                echo "Checkbox is cheked<br>";
                echo "Checkbox not checked<br>";

This is html code

<form enctype="multipart/form-data" action="" method="POST">
    <div id="text">
        <input type="checkbox" name="checkbox[0]"  />Checkbox1<br>
        <input type="checkbox" name="checkbox[1]"  />Checkbox2<br>
        <input type="checkbox" name="checkbox[2]"  />Checkbox3<br>
        <input type="checkbox" name="checkbox[3]"  />Checkbox4<br>
        <input type="checkbox" name="checkbox[4]"  />Checkbox5<br>
    <input type="submit" value="Submit" name="submit" id="submit" />

Hope it will help you. If you find any problem then please inform me. i will try to help you