foreach($fruta as $indice => $valor){ if ($fruta[$indice]!=""){ print $_POST['fruta']."="; print $fruta[$indice]."<br>"; } }