댓글 검색 목록

[php] fgetcsv: read a csv file

페이지 정보

작성자 운영자 작성일 15-05-27 00:24 조회 2,059 댓글 0

<?php

   $fh = fopen("./demoCSV.csv", "r");

   while (list($name, $email, $phone) = fgetcsv($fh, 1024, ",")) {

      echo "<p>$name ($email) Tel. $phone</p>";

   }

?>

 

 

<!--

A,a@example.com,11111

B,b@example.com,22222

 

 

-->

 

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.