Qualcuno mi sa spiegare perché usando foreach quello che ottengo alla fine è solo l'ultimo elemento dell'array e non tutti e tre insieme?



Codice PHP:
$tables = array("$table1""$table2""$table3");              
foreach(
$tables as $_table) {                                       
   
$querystr "SELECT *                     
   FROM `
{$_table}` WHERE 1=1 ";