mirror of
https://github.com/php/doc-ja.git
synced 2026-03-25 07:32:13 +01:00
* PHP 8.4: CSV related changes and deprecations の取り込み https://github.com/php/doc-en/pull/4093 以下も合わせて取り込む reference/spl/splfileobject/setcsvcontrol.xml - [skip-revcheck] Fill xi:fallback to avoid 'variablelist incomplete' in some translations - https://github.com/php/doc-en/pull/4128 - Update setcsvcontrol.xml Fix typo - https://github.com/php/doc-en/pull/4379 reference/spl/splfileobject/fgetcsv.xml - Update fgetcsv.xml Remove the duplicate sentence - https://github.com/php/doc-en/pull/4111 * Fix GH-4175: do not say the parameters are optional の取り込み https://github.com/php/doc-en/pull/4177 * Document str_getcsv() and fgetcsv() change in 8.3.0 (closes #4197) の取り込み https://github.com/php/doc-en/pull/4198 * Fix: Add explicit $escape parameter in fputcsv for PHP 8.4 compatibility の取り込み https://github.com/php/doc-en/pull/4283 * 改行位置を原文と合わせる対応 --------- Co-authored-by: 武田 憲太郎 <takeda@youmind.jp>
125 lines
3.1 KiB
XML
125 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 73007ad9889ca2a3d85b0a710b55deb44ac370cc Maintainer: masakielastic Status: ready -->
|
|
<!-- Credits: mumumu -->
|
|
<refentry xml:id="splfileobject.getcsvcontrol" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>SplFileObject::getCsvControl</refname>
|
|
<refpurpose>CSV の区切り、囲み文字、エスケープ文字を取得する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis role="SplFileObject">
|
|
<modifier>public</modifier> <type>array</type><methodname>SplFileObject::getCsvControl</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
<acronym>CSV</acronym> フィールドを処理するのに使われる
|
|
区切りと囲み文字とエスケープ文字を取得します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
区切りと囲み文字とエスケープ文字を含む数字添字配列を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.4.0</entry>
|
|
<entry>
|
|
エスケープ文字は空文字列でも問題なくなりました。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>7.0.10</entry>
|
|
<entry>
|
|
戻り値の配列にエスケープ文字が追加されました。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><methodname>SplFileObject::getCsvControl</methodname> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$file = new SplFileObject("data.txt");
|
|
print_r($file->getCsvControl());
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[0] => ,
|
|
[1] => "
|
|
[2] => \
|
|
)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><methodname>SplFileObject::setCsvControl</methodname></member>
|
|
<member><methodname>SplFileObject::fgetcsv</methodname></member>
|
|
<member><methodname>SplFileObject::fputcsv</methodname></member>
|
|
<member><function>fputcsv</function></member>
|
|
<member><function>fgetcsv</function></member>
|
|
<member><function>str_getcsv</function></member>
|
|
</simplelist>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|