I'm assuming the "1" in "Yes|1" is some piece of data that needs to accompany the "Yes" here (like order, or points, or rank).
You could do something like this:
PHP Code:
$answers_array = array(
array('Y' => 2, 'N' => 1),
array('Y' => 1, 'N' => 2),
array('Y' => 1, 'N' => 2),
array('Y' => 2, 'N' => 1),
array('Y' => 1, 'N' => 2),
array('Y' => 1, 'N' => 2));
Then to access your array, use something like:
PHP Code:
foreach ($answers_array as $curr_values) {
$y = $curr_values['Y'];
$n = $curr_values['N'];
if ($y > $n) echo 'Y is greater than N';
else if ($y == $n) echo 'Y is the same as N';
else echo 'Y is less than N';
// Do other stuff with Y and N here
}