I finally got it to work by exploding the values in the array and extracting them individually.
PHP Code:
if (!empty($_POST['predminutes1'])){
$count1 = 0;
foreach($_POST['predminutes1'] as $mkey1=>$gvalue1) {
$gsub1 = explode(' ', $gvalue1);
foreach($gsub1 as $gnumber1) {
# check value to add to count
if(!empty($gnumber1))
$count1++;
if ($count1 > $predscore1) {
eval(print_standard_error('error_invalidscorers'));
}
if (!preg_match('/^([0-9]*)$/', $gnumber1)){
eval(print_standard_error('error_invalidcharacters'));
}
}
}
}