summaryrefslogtreecommitdiffstats
path: root/examples/example04.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example04.php')
-rw-r--r--examples/example04.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/example04.php b/examples/example04.php
index e0cb41f..213425f 100644
--- a/examples/example04.php
+++ b/examples/example04.php
@@ -1,8 +1,5 @@
<?php
-error_reporting(-1);
-ini_set('display_errors', 'On');
-
use Bakame\Csv\Reader;
require '../vendor/autoload.php';
@@ -47,11 +44,7 @@ $headers = $inputCsv->fetchOne(0);
<caption>Statistics for the 20 least used female name in the year 2010</caption>
<thead>
<tr>
-<?php foreach ($headers as $title): ?>
- <th><?=$title?></th>
- <?php
-endforeach;
-?>
+ <th><?=implode('</th>'.PHP_EOL.'<th>', $headers), '</th>', PHP_EOL; ?>
</tr>
</thead>
<tbody>