File tree Expand file tree Collapse file tree 2 files changed +30
-34
lines changed
reference/array/functions Expand file tree Collapse file tree 2 files changed +30
-34
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 85c47f89f35f927d7c7ad23235c830dc4b514ddd Maintainer: mumumu Status: ready -->
3+ <!-- EN-Revision: b68b5e427e7454a59437dd6f7ff27b4f9228fe6d Maintainer: mumumu Status: ready -->
44<refentry xml : id =" function.array-first" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >array_first</refname >
1313 <type >mixed</type ><methodname >array_first</methodname >
1414 <methodparam ><type >array</type ><parameter >array</parameter ></methodparam >
1515 </methodsynopsis >
16- <para >
16+ <simpara >
1717 与えられた <parameter >array</parameter > の最初の値を返します。
18- </para >
18+ </simpara >
1919 </refsect1 >
2020
2121 <refsect1 role =" parameters" >
2424 <varlistentry >
2525 <term ><parameter >array</parameter ></term >
2626 <listitem >
27- <para >
27+ <simpara >
2828 入力となる配列
29- </para >
29+ </simpara >
3030 </listitem >
3131 </varlistentry >
3232 </variablelist >
3333 </refsect1 >
3434
3535 <refsect1 role =" returnvalues" >
3636 &reftitle.returnvalues;
37- <para >
37+ <simpara >
3838 配列が空でなければ、
3939 <parameter >array</parameter > の最初の値を返します。
4040 そうでなければ、&null; を返します。
41- </para >
41+ </simpara >
4242 </refsect1 >
4343
4444 <refsect1 role =" examples" >
4545 &reftitle.examples;
46- <para >
47- <example xml : id =" array_first.example.basic" >
48- <title >基本的な <function >array_first</function > 関数の使い方</title >
49- <programlisting role =" php" >
46+ <example xml : id =" array_first.example.basic" >
47+ <title >基本的な <function >array_first</function > 関数の使い方</title >
48+ <programlisting role =" php" >
5049<![CDATA[
5150<?php
5251$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -56,15 +55,14 @@ $firstValue = array_first($array);
5655var_dump($firstValue);
5756?>
5857]]>
59- </programlisting >
60- &example.outputs;
61- <screen >
58+ </programlisting >
59+ &example.outputs;
60+ <screen >
6261<![CDATA[
6362string(1) "a"
6463]]>
65- </screen >
66- </example >
67- </para >
64+ </screen >
65+ </example >
6866 </refsect1 >
6967
7068 <refsect1 role =" seealso" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 85c47f89f35f927d7c7ad23235c830dc4b514ddd Maintainer: mumumu Status: ready -->
3+ <!-- EN-Revision: b68b5e427e7454a59437dd6f7ff27b4f9228fe6d Maintainer: mumumu Status: ready -->
44<refentry xml : id =" function.array-last" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >array_last</refname >
1313 <type >mixed</type ><methodname >array_last</methodname >
1414 <methodparam ><type >array</type ><parameter >array</parameter ></methodparam >
1515 </methodsynopsis >
16- <para >
16+ <simpara >
1717 与えられた <parameter >array</parameter > の最後の値を返します。
18- </para >
18+ </simpara >
1919 </refsect1 >
2020
2121 <refsect1 role =" parameters" >
2424 <varlistentry >
2525 <term ><parameter >array</parameter ></term >
2626 <listitem >
27- <para >
27+ <simpara >
2828 入力となる配列
29- </para >
29+ </simpara >
3030 </listitem >
3131 </varlistentry >
3232 </variablelist >
3333 </refsect1 >
3434
3535 <refsect1 role =" returnvalues" >
3636 &reftitle.returnvalues;
37- <para >
37+ <simpara >
3838 配列が空でなければ、
3939 <parameter >array</parameter > の最後の値を返します。
4040 そうでなければ、&null; を返します。
41- </para >
41+ </simpara >
4242 </refsect1 >
4343
4444 <refsect1 role =" examples" >
4545 &reftitle.examples;
46- <para >
47- <example xml : id =" array_last.example.basic" >
48- <title >基本的な <function >array_last</function > 関数の使い方</title >
49- <programlisting role =" php" >
46+ <example xml : id =" array_last.example.basic" >
47+ <title >基本的な <function >array_last</function > 関数の使い方</title >
48+ <programlisting role =" php" >
5049<![CDATA[
5150<?php
5251$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -56,15 +55,14 @@ $lastValue = array_last($array);
5655var_dump($lastValue);
5756?>
5857]]>
59- </programlisting >
60- &example.outputs;
61- <screen >
58+ </programlisting >
59+ &example.outputs;
60+ <screen >
6261<![CDATA[
6362string(1) "d"
6463]]>
65- </screen >
66- </example >
67- </para >
64+ </screen >
65+ </example >
6866 </refsect1 >
6967
7068 <refsect1 role =" seealso" >
You can’t perform that action at this time.
0 commit comments