1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. PHP處理excel cvs表格的方法

        時間:2020-11-21 13:32:49 PHP 我要投稿

        PHP處理excel cvs表格的方法

          PHP處理excel cvs表格的方法

          復(fù)制代碼 代碼如下:

          <?php

          $data = array();

          //convert a cvs file to an array $data

          $handle = fopen("data.csv","r");

          while ($curline = fgetcsv($handle, 1000, ",")){

          $tmp = array();

          $num = count($curline);

          for($c=0; $c < $num; $c++){

          array_push($tmp, $curline[c]);

          }

          array_push($data, $tmp);

          }

          print_r($data);

          fclose($handle);

          //convert array $data back to a cvs file

          $handle = fopen("result.csv","w");

          foreach($data as $curline){

          if(fputcsv($handle, $curline)==false){

          die("cannot write CSV line");

          }

          }

          fclose($handle);

          ?>

        【PHP處理excel cvs表格的方法】相關(guān)文章:

        1.PHP生成Excel報表的方法

        2.PHP處理密碼的幾種方法

        3.PHP5異常處理的方法

        4.excel表格的創(chuàng)建

        5.excel表格公式大全

        6.Excel 表格基本操作

        7.Excel表格創(chuàng)建圖表

        8.PHP中date函數(shù)常用時間處理方法

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>