update : 2015.11.03
php.shukuma.com검색:
|
SplFileObject::fputcsv(PHP 5 >= 5.4.0) SplFileObject::fputcsv — Write a field array as a CSV line 설명
public int SplFileObject::fputcsv
( array
$fields
[, string $delimiter = ","
[, string $enclosure = '"'
[, string $escape = "\"
]]] )
Writes the 인수
반환값
Returns the length of the written string실패 시
Returns 오류/예외
An 변경점
예제
Example #1 SplFileObject::fputcsv() example
<?php The above example will write the following to file.csv: aaa,bbb,ccc,dddd 123,456,789 """aaa""","""bbb""" 참고
|