美文网首页
十三、PHP导出Excel

十三、PHP导出Excel

作者: yuzhan550 | 来源:发表于2017-09-27 16:59 被阅读21次

    1.变量:

    $indexKey = array("序号","姓名","会员编号","手机号","余额","身份证号","创建时间","状态");

     Array
    (
        [0] => Array
            (
                [id] => 1
                [username] => 平台
                [vip_no] => 880000000
                [phone] => 17606543093
                [balance] => 67065.47
                [idnum] => 410381199012314567
                [create_time] => 1498989892
                [status] => 0
            )
    
        [1] => Array
            (
                [id] => 1
                [username] => 平台
                [vip_no] => 880000000
                [phone] => 17606543093
                [balance] => 67065.47
                [idnum] => 410381199012314567
                [create_time] => 1498989892
                [status] => 0
            )
    )
    

    $filename = 'testname';

    相关文章

      网友评论

          本文标题:十三、PHP导出Excel

          本文链接:https://www.haomeiwen.com/subject/svwuextx.html