Read a CSV file into an array in PHP

$handle = fopen('orders.csv', 'r');
$header = fgetcsv($handle);
$rows   = array();

while (($row = fgetcsv($handle)) !== false) {
    $rows[] = array_combine($header, $row);
}

fclose($handle);