foreach and "is greater than" criteria in conditional
<p>Does anyone know how to use FOREACH loop in order to get whole block of information  related to criteria: "is greater than" the number posted by user (in this case $metsq=$_POST['metersq'];)<br>
For example, in code I posted, if user write <strong>90</strong>, it should outputs only<br>
color - blue<br>
msq - 100<br>
city - Prague</p>

<p>I tried this code, but, obviously, I don't have much experience. 
Thanks in advance!  </p>

<pre><code>&lt;?php

if(isset($_POST['button'])){
    $houses = array(
        'house1'=&gt;array(
        'color'=&gt;'green',
        'msq'=&gt;100,
        'city'=&gt;'Prague'
    ),

        'house2'=&gt;array(
        'color'=&gt;'red',
        'msq'=&gt;30,
        'city'=&gt;'Belgrade'
    ),
        'house3'=&gt;array(
        'color'=&gt;'blue',
        'msq'=&gt;50,
        'city'=&gt;'London'
    ),
        'house4'=&gt;array(
        'color'=&gt;'blue',
        'msq'=&gt;50,
        'city'=&gt;'Belgrade'
    )
);

$col=$_POST['colors'];
$metsq=$_POST['metersq'];
$cit=$_POST['cities'];

foreach($houses as $house=&gt;$data) {
    foreach($data as $key=&gt;$value) {
        if($value&gt;=$metsq) {
            echo "$key - $value &lt;/br&gt;";
        }
    } 
} else {
    echo "Go, search";
}
?&gt;


&lt;form action="?" method="post"&gt;
&lt;select name="colors" &gt;

&lt;option&gt;green&lt;/option&gt;&lt;/br&gt;
&lt;option&gt;blue&lt;/option&gt;&lt;/br&gt;
&lt;option&gt;red&lt;/option&gt;&lt;/br&gt;
&lt;/select&gt;

&lt;input type="number" name="metersq" id="metersq" maxlength="3" /&gt;m2&lt;/br&gt;

&lt;select name="cities"&gt;

&lt;option&gt;Prague&lt;/option&gt;&lt;/br&gt;
&lt;option&gt;Belgrade&lt;/option&gt;&lt;/br&gt;
&lt;option&gt;London&lt;/option&gt;&lt;/br&gt;
&lt;/select&gt;

&lt;input type="submit" value="Find" name="button"id="button" /&gt;
</code></pre>
