I have a form with 12 checkboxes, one group of radio buttons with two members - group1, and another group with 4
members - group2

I send the chosen values using post.

Checkboxes and group1 work fine, but when I introduce group2 php sees it as an array, unlike group 1.

In other words:

if (isset($_POST['submitted'])) {
$word=$_POST['word'];
$group1=$_POST['group1'];
$group2=$_POST['group2'];

foreach($_POST['tenses'] as $tense) {
if ($group1=="activ"){
...
}else if ($group1="pasiv"){
...
}
}
}
works
but

if (isset($_POST['submitted'])) {
$word=$_POST['word'];
$group1=$_POST['group1'];
$group2=$_POST['group2'];

foreach($_POST['tenses'] as $tense) {
echo $group2;
if ($group2=="afirmativ"){
if ($group1=="activ"){
...
}else if ($group1="pasiv"){
...
}
}
}
}
does not.
Instead of printing a value as for $group1, the echo prints 'Array'.

Why could that be, I am doing the same thing for both sets of radio buttons.
Thanks