diff options
Diffstat (limited to 'examples/table.php')
-rw-r--r-- | examples/table.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/table.php b/examples/table.php new file mode 100644 index 0000000..5c26ddb --- /dev/null +++ b/examples/table.php @@ -0,0 +1,21 @@ +<?php + +use Bakame\Csv\Reader; + +require '../vendor/autoload.php'; + +$inputCsv = new Reader('data/prenoms.csv'); +$inputCsv->setDelimiter(';'); +$inputCsv->setEncoding("iso-8859-15"); +?> +<!doctype html> +<html lang="fr"> +<head> + <meta charset="<?=$inputCsv->getEncoding()?>"> + <title>Using the toHTML() method</title> + <link rel="stylesheet" href="example.css"> +</head> +<body> +<?=$inputCsv->toHTML('table-csv-data with-header');?> +</body> +</html> |