Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>";
Add Comment
Please, Sign In to add comment