Read Xlsx file in PhpSpreadsheet

前端 未结 4 2196
眼角桃花
眼角桃花 2020-12-15 10:43

I want to read an xlsx file that was created in Microsoft Excel, but when I run the following code...

$Source_File = \"test.xlsx\";
$Spreadsheet         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 11:38

    I had the same issue, after adding .xlsx files to a git repository on my Mac.
    The problem was that git auto-converted the line endings.

    The solution was to add these lines to the .gitattributes file:

    *.xls   binary
    *.xlsx  binary
    

提交回复
热议问题