Skip to content

Commit fdba698

Browse files
committed
Markup nits for new array_first and array_last function docs
php/doc-en@b68b5e4
1 parent 67145e5 commit fdba698

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

reference/array/functions/array-first.xml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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>
@@ -13,9 +13,9 @@
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">
@@ -24,29 +24,28 @@
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);
5655
var_dump($firstValue);
5756
?>
5857
]]>
59-
</programlisting>
60-
&example.outputs;
61-
<screen>
58+
</programlisting>
59+
&example.outputs;
60+
<screen>
6261
<![CDATA[
6362
string(1) "a"
6463
]]>
65-
</screen>
66-
</example>
67-
</para>
64+
</screen>
65+
</example>
6866
</refsect1>
6967

7068
<refsect1 role="seealso">

reference/array/functions/array-last.xml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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>
@@ -13,9 +13,9 @@
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">
@@ -24,29 +24,28 @@
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);
5655
var_dump($lastValue);
5756
?>
5857
]]>
59-
</programlisting>
60-
&example.outputs;
61-
<screen>
58+
</programlisting>
59+
&example.outputs;
60+
<screen>
6261
<![CDATA[
6362
string(1) "d"
6463
]]>
65-
</screen>
66-
</example>
67-
</para>
64+
</screen>
65+
</example>
6866
</refsect1>
6967

7068
<refsect1 role="seealso">

0 commit comments

Comments
 (0)