Echo tableau en PHP

Jusqu'à présent, j'ai obtenu mon code pour lire à partir d'un .fichier txt, analyser l'info et la sortie via html. Ma question est comment je peux l'écho de mes $nom et $email variables dans un tableau à deux colonnes?

Voici mon code:

<?php

//Read the file into an array
$users = file("names.txt");

//Cycle through the array
foreach ($users as $user) {

    //Parse the line, retriving the name and e-mail address
    list($name, $email) = explode(" ", $user);

    //Remove newline from $email
    $email = trim($email);

    //Output the data...how could I do this with a two-column table?
    echo "<a href=\"mailto:$email\">$name</a> <br />";

}

?>

Merci d'avance.

  • Merci à tous! Je suis très nouveau pour php, donc je m'excuse d'avance pour ma question de novice.
InformationsquelleAutor Rich2233 | 2011-10-26