Loop and comparing each element of array?
<p>I am trying to compare each element from two array <code>$min</code> and <code>$max</code></p>

<pre><code>$test = false;
$min = array(2,3,3,55,556);
$max = array(22,32,4,56,557);
foreach($min as $key=&gt;$val){
    foreach($max as $k=&gt;$v){
      if($val &gt;= $v){
        $test=true;
        break;
      }
  }
}


if($test){
  echo "A NOT GREATER THAN or EQUAL B";
}else{
  echo "YOU CAN SAVE NOW";
}
</code></pre>

<p>What I am wrong?because I got the message here</p>

<pre><code>  A NOT GREATER THAN or EQUAL B
</code></pre>

<p>thanks</p>
