title: Particular entries in a loop to be checked and displayed
body: <p>A section of my code is as follows,</p>
  
  <pre><code> foreach( $alpha as $key =&gt; $obj)
                          {
                           echo "&lt;tr&gt;"; 
                           echo "&lt;td&gt; ". $obj[$d] ."&lt;/td&gt;";
                           echo "&lt;td&gt; ". $obj[$a] ."&lt;/td&gt;";
                           echo "&lt;td&gt; ". $obj[$o] ."&lt;/td&gt;";
                           echo "&lt;td&gt; ". $obj[$f] ."&lt;/td&gt;";                           
                           echo "&lt;td&gt; ". $obj[$e] ."&lt;/td&gt;";
                             echo "&lt;/tr&gt;";  
                            }  
  </code></pre>
  
  <p>Here the array alpha is an associative array. The $d, $a, $o, $f, $e are the row values from an sql query. I want to check the value in the $obj[$f] and if a value exists then alert the user using javascripts' alert() command, that a value exists and if it doesnt then i want the looping to continue as usual.    </p>