<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.splfileobject.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'splfileobject.getcsvcontrol.php',
    1 => 'SplFileObject::getCsvControl',
    2 => 'CSV の区切り、囲み文字、エスケープ文字を取得する',
  ),
  'up' => 
  array (
    0 => 'class.splfileobject.php',
    1 => 'SplFileObject',
  ),
  'prev' => 
  array (
    0 => 'splfileobject.getchildren.php',
    1 => 'SplFileObject::getChildren',
  ),
  'next' => 
  array (
    0 => 'splfileobject.getcurrentline.php',
    1 => 'SplFileObject::getCurrentLine',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/spl/splfileobject/getcsvcontrol.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="splfileobject.getcsvcontrol" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplFileObject::getCsvControl</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplFileObject::getCsvControl</span> &mdash; <span class="dc-title">CSV の区切り、囲み文字、エスケープ文字を取得する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-splfileobject.getcsvcontrol-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SplFileObject::getCsvControl</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   <abbr title="Comma Separated Value">CSV</abbr> フィールドを処理するのに使われる
   区切りと囲み文字とエスケープ文字を取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-splfileobject.getcsvcontrol-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-splfileobject.getcsvcontrol-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   区切りと囲み文字とエスケープ文字を含む数字添字配列を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-splfileobject.getcsvcontrol-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>7.4.0</td>
       <td>
        エスケープ文字は空文字列でも問題なくなりました。
       </td>
      </tr>

      <tr>
       <td>7.0.10</td>
       <td>
        戻り値の配列にエスケープ文字が追加されました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-splfileobject.getcsvcontrol-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="methodname"><strong>SplFileObject::getCsvControl()</strong></span> の例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$file </span><span style="color: #007700">= new </span><span style="color: #0000BB">SplFileObject</span><span style="color: #007700">(</span><span style="color: #DD0000">"data.txt"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCsvControl</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は、
たとえば以下のようになります。</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; ,
    [1] =&gt; &quot;
    [2] =&gt; \
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-splfileobject.getcsvcontrol-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="splfileobject.setcsvcontrol.php" class="methodname" rel="rdfs-seeAlso">SplFileObject::setCsvControl()</a> - CSV の区切り文字、囲み文字、エスケープ文字をセットする</span></li>
   <li><span class="methodname"><a href="splfileobject.fgetcsv.php" class="methodname" rel="rdfs-seeAlso">SplFileObject::fgetcsv()</a> - ファイルから行を取り出し CSV フィールドとして処理する</span></li>
   <li><span class="methodname"><a href="splfileobject.fputcsv.php" class="methodname" rel="rdfs-seeAlso">SplFileObject::fputcsv()</a> - フィールドの配列を CSV の行として書き出す</span></li>
   <li><span class="function"><a href="function.fputcsv.php" class="function" rel="rdfs-seeAlso">fputcsv()</a> - 行を CSV 形式にフォーマットし、ファイルポインタに書き込む</span></li>
   <li><span class="function"><a href="function.fgetcsv.php" class="function" rel="rdfs-seeAlso">fgetcsv()</a> - ファイルポインタから行を取得し、CSVフィールドを処理する</span></li>
   <li><span class="function"><a href="function.str-getcsv.php" class="function" rel="rdfs-seeAlso">str_getcsv()</a> - CSV 文字列をパースして配列に格納する</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>