phpexcel - 使用phpexcel在现有excel文件中添加新行

时间:2018-06-12 10:43:36

标签: php phpexcel

像这样的数组中的所有数据

<?php
$sub_arr = array();  
$sub_arr[] = array(
    'sr_nm' => 1,
    'recept_number' => 3019,
    'adm_number' => 3434,
    'student_name' => 'amit',
    'class' => 'LKG',
    'pay' => 'online',
    'cheq_nm' => '',
    'adm_fee' => '',
    'consolidated' => '',
    'sec.fee' => '',
    'dev.charge' => 5000,
    'school_fee' => 1300,
    'subling' => '-3400',
    'transport' => 2300,
    'late_fee' =>'total' => 35006
);
$sub_arr[] = array('sr_nm' => 1,
    'recept_number' => 3019,
    'adm_number' => 3434,
    'student_name' => 'amit',
    'class' => 'LKG',
    'pay' => 'online',
    'cheq_nm' => '',
    'adm_fee' => '',
    'consolidated' => '',
    'sec.fee' => '',
    'dev.charge' => 5000,
    'school_fee' => 1300,
    'subling' => '-3400',
    'transport' => 2300,
    'late_fee' => '',
    'total' => 35006
);

我的excel文件:

see excel file screen shoot

我想在加载文件后从A4 shell插入新数据。

0 个答案:

没有答案