downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplFileObject::getCurrentLine> <SplFileObject::getChildren
[edit] Last updated: Fri, 25 May 2012

view this page in

SplFileObject::getCsvControl

(PHP 5 >= 5.2.0)

SplFileObject::getCsvControlCSV の区切りと囲み文字を取得する

説明

public array SplFileObject::getCsvControl ( void )

CSV フィールドを処理するのに使われる区切りと囲み文字を取得します。

パラメータ

この関数にはパラメータはありません。

返り値

区切りと囲み文字を含む数字添字配列を返します。

例1 SplFileObject::getCsvControl() の例

<?php
$file 
= new SplFileObject("data.txt");
print_r($file->getCsvControl());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [0] => ,
    [1] => "
)

参考



add a note add a note User Contributed Notes SplFileObject::getCsvControl
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites