public function readFile(string $file_name)
    {
        $data = array();
        $this->file_handle = fopen($file_name, "r");

        foreach ($this as $row)
            $data[] = $row;

        return $data;
    }
public function readFile(string $file_name)
    {
        $data = array();
        $this->file_handle = fopen($file_name, "r");

        foreach ($this as $row)
            $data[] = $row;

        return $data;
    }
public function readFile ( string $ file_name ) { $ data = array ( ) ; $ this -> file_handle = fopen ( $ file_name , "r" ) ; foreach ( $ this as $ row ) $ data [ ] = $ row ; return $ data ; }
Read CSV data from a file

@param string $file_name The name of the file to read
@return array The parsed data
Read CSV data from a file