title: foreach with an AND logical operator
body: <p>about foreach, why it doesnt accept the AND logical operator?
  I've already use the "&amp;&amp;" and I'm getting the same error.
  do I need to create another foreach?</p>
  
  <pre><code>&lt;?php
  
  $txt_name=$_REQUEST['text_name'];
  $txt_value=$_REQUEST['text_value'];
  
  if (!empty($txt_name) AND ($txt_value)) {
      foreach ($txt_name AS $x)&amp;&amp;($txt_value AS $y)  {
  
          $con = mysql_connect("localhost", "root", "");
          mysql_select_db("test1"); 
          $name = mysql_real_escape_string($x);
          $score = mysql_real_escape_string($y);
          $sql = mysql_query("INSERT INTO tbl_test (testname, score) VALUES ('$name', '$score')");
          mysql_close($con);
  
      }
  }
  ?&gt;
  </code></pre>