If the vars are checkboxes from a form then they are fairly easy to access from the POST or GET array.
You can access the all the checkedd elements using their var name:
while($x = each($_POST['var_name']))
{
echo "$x[0] => $x[1]<BR>";
}
If you want to make a multidimensional array then something like:
$my_elements = array();
$my_elements[0] = $_POST['var_name'];
$my_elements[1] = $_POST['var_name2'];
Presumably you know how many checkbox groups there are so you can create a loop to do this by making an array of you checkbox names and looping through them
$checkboxes = array($POST['var1'], $POST['var2'], ...);
for ($i=0; $i <=sizeof($checkboxes); $i++) {
$my_elements[$i] = $checkboxes[$i];
}
ought to create an multidimensional array for you.
HTH