foreach ($titulo as $mostrar) { if($mostrar[$i]!= ){ echo " Titulo:"; echo " ". $mostrar[0] ."\n "; } }