Home > Backend Development > PHP Tutorial > php中fgetcsv()函数用法实例_PHP

php中fgetcsv()函数用法实例_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 14:35:50
Original
951 people have browsed it

本文实例讲述了php中fgetcsv()函数用法。分享给大家供大家参考。具体方法如下:

fgetcsv是一个简单的生成excel文档的函数,从 PHP 4.3.5 起,fgetcsv() 的操作是二进制安全的,实例代码如下:

代码如下:

$file = fopen("contacts.csv","r");
print_r(fgetcsv($file));
fclose($file);
?>

希望本文所述对大家的PHP程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template