\n"; while($csv_line = fgetcsv($fp)) { print ''; for ($i = 0, $j = count($csv_line); $i < $j; $i++) { print ''.htmlentities($csv_line[$i]).''; } print "\n"; } print '\n'; fclose($fp) or die("can't close file"); ?>
上一篇:使用php怎么将数组转换为csv格式的文件并输出
下一篇:使用php怎么判断浮点数是否相等