‚; //display header row if true if ($header) { $csvcontents = fgetcsv($handle); echo ‚‚; foreach ($csvcontents as $headercolumn) { echo „$headercolumn„; } echo ‚‚; } // displaying contents while ($csvcontents = fgetcsv($handle)) { echo ‚‚; foreach ($csvcontents as $column) { echo „$column„; } echo ‚‚; } echo ‚‚; fclose($handle); } ?>