0
功能CONV() {如何i選擇所指定的excel工作表中所選行中笨
define('CSV_PATH','./uploads/'); #make a folder "csvfile" in your project root
$filename='./uploads/'.
$csv_file = CSV_PATH ."ww.xls"; // Name of your CSV file
$fp= fopen($csv_file, 'r');
我想行19-22和列AH從高強sheet.please幫助
先生,如果我想從Excel工作表中我將如何做Coulumn^h值,我使用的PHP笨 – anju
$行= $這個 - > objPHPExcel-> getActiveSheet() - > getRowIterator($ ROWNUMBER) - >電流(); $ cellIterator = $ row-> getCellIterator(); $ cellIterator-> setIterateOnlyExistingCells(false); foreach($ cellIterator as $ cell){ echo $ cell-> getValue(); } – anju
@anju我可以看到你正在使用PHPExcel ...我不太熟悉它,但我認爲你可以按照本教程[鏈接](https://arjunphp.com/)獲取csv中的所有值how-to-use-phpexcel-with-codeigniter /)之後,您可以在$ arr_data上執行var_dump以獲取列和值 – AceKYD