I am trying to run a function which would show me if the variables in the array are between 0 and 101, but I can't find the right answer It always lets me to enter any number. Any ideas?`
<?php
$n = array($_POST[number1], $_POST[number2], $_POST[number3], $_POST[number4], $_POST[number5]);
if ($n[0] < 101 && $n[0] >0 || $n[1] < 101 && $n[1] >0 || $n[2] < 101 && $n[2] >0 || $n[3] < 101 && $n[3] >0 || $n[4] < 101 && $n[4] >0){
echo array_sum($n) / 5;
} else {
echo "The grade must be between 1 and 100";
}