title: Cannot use assign-op operators with overloaded objects nor string offsets
body: <p>I have this portion of code and it gives me the error in the title.</p>
  
  <p>I have a count <code>$k</code> from 1 to 5 for each table.</p>
  
  <p><code>$myarray</code> consists of at least 3 to 4 names.</p>
  
  <p>The error occurs in the line with <strong><code>$qu .=</code></strong> ...</p>
  
  <p>What i tried so far: changing the variablename <code>$i</code> to <code>$v{$i}</code> in the <code>$qu .=</code> line.</p>
  
  <p>So is there any possibility to iterate the query?  So that it has as many <code>AND</code>s in the <code>WHERE</code> clause as the count of the array is?</p>
  
  <pre><code>while ($k&lt;=5) {
    $queryname = "SELECT Name FROM description";
    $qname = mysql_query($queryname,$link);
  
    while ($reihe = mysql_fetch_object($qname)) {
      {
        $unse = unserialize($reihe-&gt;Name);
        {
          foreach ($unse as $j=&gt;$h)
            foreach ($h as $m) {
              $myarray = preg_split('/ |\s| /',$m);
              {
                echo "&lt;br&gt;";
                $array_empty = $myarray;
                $empty_elements = array("");
                $myarray = array_diff($array_empty,$empty_elements);
                var_dump($myarray);
                for ($i=1; $i&lt;=count($myarray); $i++) {
                  $v{$i} = $myarray[$i];
                  echo $v{$i};
                  $esc{$i} = strtolower(mysql_escape_string($v{$i}));
                  echo "&lt;br&gt;" . $esc{$i} . "&lt;br&gt;";
                  $qu = "SELECT * FROM `table ID=$k` WHERE";
                  $qu{$i} .= "AND `table ID=$k`.`name` LIKE '%$esc{$i}%'";
                }
              }
            }
          {
            $test_a = mysql_query($qu,$link) or die (mysql_error());
            echo "&lt;br&gt;";
            var_dump($test_a);
            for ($x=0; $x&lt;mysql_num_rows($test_a); $x++) {
              $row = mysql_result($test_a,$x,'data1');
              $namee = mysql_result($test_a,$x,'data2');
              echo 'data1' . $row . '&lt;br&gt;';
              echo 'data2' . $namee . '&lt;br&gt;';
            }
          }
        }
      }
    }
    $k++;
  }
  </code></pre>