\n"; if ($val) { $x .= "---\n"; } else { $x .= "---\n"; } foreach ($spoken_languages as $lang) { if ($lang == $val) { $x .= "$lang\n"; } else { $x .= "$lang\n"; } } $x .= "\n"; return $x; } ?>