你的 9787509345030 在 excel 不是以字符串形式存储的('9787509345030),而是以样式表方式修饰的(不然也是科学计数法表示)
你可以尝试使用 getFormattedValue 方法读取,而不是 getValue 方法读取你的 $data->sheets[0]['cells'][$i][1] 是有问题的

解决方案 »

  1.   

    我在CSDN一个人那里借鉴的写法
                    $data = new Spreadsheet_Excel_Reader(); 
    $data->setOutputEncoding('utf-8');  $data->read($upload_file_name); 

    for($i= 2; $i<= $data->sheets[0]['numRows']; $i++)

    $user_name = $_SESSION['user_name'];
    $book_isbn =   $data->sheets[0]['cells'][$i][1]));
    $book_name = $data->sheets[0]['cells'][$i][2];
    $book_press = $data->sheets[0]['cells'][$i][3];
                            }
    请问你是怎么写的?
    格式化读取是怎么写的呢,我看了一下官方给我的php文件,一时没看懂。