Skip to content

Commit a919b5b

Browse files
Update README.md
1 parent 645cf50 commit a919b5b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
# csv
2-
csv.phpfunc.com
1+
# csv.phpfunc.com
2+
3+
4+
[How to Handle CSV with PHP: Read Write, Import Export with Database - Phppot](https://phppot.com/php/how-to-handle-csv-with-php-read-write-import-export-with-database/)
5+
6+
> ## How to convert PHP Array to CSV?
7+
>
8+
> There are many possible ways in PHP to convert an array data into CSV format. PHP contains in-built functions like **fputcsv()** for doing this conversion.
9+
>
10+
> The following code uses custom PHP function str\_putcsv() to get the array data and put it into the file target as specified. This custom function uses PHP built-in fputcsv() on each array iteration.

0 commit comments

Comments
 (0)