Home >Backend Development >PHP Tutorial >Usage of fgetcsv() function in php_PHP tutorial

Usage of fgetcsv() function in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:03:33916browse

fgetcsv is a simple function to generate excel documents. Starting from PHP 4.3.5, the operation of fgetcsv() is binary safe

 代码如下 复制代码
$file = fopen("contacts.csv","r");
print_r(fgetcsv($file));
fclose($file);
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445293.htmlTechArticlefgetcsv is a simple function to generate excel documents. Starting from PHP 4.3.5, the operation of fgetcsv() is The binary safe code is copied as follows?php $file = fopen(contacts.csv,r); prin...
Statement:
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