My code is not executing after for loop?
<p>Please check this below code. After for loop remaining code is not executing. It suppose to print "Helo", but it is not printing any thing.</p>

<pre><code> for($i=0;$i&lt;10;$i++)
 {

      $minrate=$obj_iScripts-&gt;min_avg_rate($roomnumber[$id_array[$i]], $amount_ary[$id_array[$i]], $totalrooms);
      $all_min_price[]=$minrate;

      if($_SESSION['star'][$id_array[$i]]&gt;=1 &amp;&amp; $_SESSION['star'][$id_array[$i]]&lt;=5)
      {
           //include 'searchresult_table.php';
      }

 }
 echo "Helo";
</code></pre>

<p>code:</p>

<pre><code>public function min_avg_rate($roomnumber,$rates,$totalrooms)
 {
      $ary_name='iArray';
      $total=0;
      for($i=1;$i&lt;=$totalrooms;$i++)
      {
           ${$ary_name.$i}=array();
           $temp=max($rates);
           for($j=0;$j&lt;count($roomnumber);$j++)
           {
                if($roomnumber[$j]==$i)
                {
                     if($temp&gt;$rates[$j])
                     $temp=$rates[$j];
                     ${$ary_name.$i}=$temp;
                }
           }
           $total=$total+${$ary_name.$i};
      }
      return $total/$totalrooms;
 }
</code></pre>
