Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created July 22, 2008 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wozozo/957 to your computer and use it in GitHub Desktop.
Save wozozo/957 to your computer and use it in GitHub Desktop.
test
<?php
$handle = fopen('file.csv', 'r');
while ($a=fgetcsv($handle)) {
$b[] = $a;
}
echo "<table border='1'>";
foreach ($b as $v) {
echo "<tr>";
for ($i=0; $i < count($v); $i++) {
echo "<td>$v[$i]</td>";
}
echo "</tr>";
}
echo "</table>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment