<?php
require 'config/database.php';
$csvFile = __DIR__ . '/vehicles_import.csv';
$handle = fopen($csvFile, 'r');
$header = fgetcsv($handle);
var_dump($header, count($header));
$row = fgetcsv($handle);
var_dump($row, count($row));
$data = array_combine(array_map('strtolower', array_map('trim', $header)), $row);
var_dump($data);
fclose($handle);
