$userfile= file_get_contents("data.txt"); $users = explode("\n",$userfile); foreach ($users as $user) { list($name, $email) = explode(" ", $user); echo "$name/a> "; }?>