How to read csv file in php

<?php
$aCsv = "data.csv";
$aRows = array();
$aHandle = fopen($aCsv, 'r');
if($aHandle !== FALSE) {
while (($aData = fgetcsv($aHandle, 1000, ",")) !== FALSE)
{
$aRows[] = $aData;
}
}
print_r($aRows);
?>