foreach($results as $key=>$value) { echo "Linea numero $key<br/>"; foreach($value as $k=>$v) { echo "elemento $k = $v <br/>"; } echo "<hr/>"; }