php csv problem
<p>I have this function </p>

<pre><code>function csv_to_array($filename='', $delimiter=',')
{
    if(!file_exists($filename) || !is_readable($filename))
    {
    echo "Not a valid file name";
        return FALSE;

     }
    $header = NULL;
    $data = array();



    $fname = file($filename);
    $a1 = array('username','fullname','email','dept');  

    if (($handle = fopen($filename, 'r')) !== FALSE)
    {       
        while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE)
        {    
            if(!$header)
            {
                 $header = $row; 

                // print_r(array_diff_key($header,$array)) ;
                }
            else { 
                $data[] = array_combine($header, $row);  
                } 
        }     
        fclose($handle);
    }

    return $data;

}
</code></pre>

<p>It return associative array.
My csv file contains the header
username    fullname    email   dept
but i require the header not to be mentione din the csv file how do i go about it </p>
