Skip to content

Commit b68b5e4

Browse files
committed
Markup nits for new array_first and array_last function docs
1 parent 312c0c7 commit b68b5e4

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

reference/array/functions/array-first.xml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<type>mixed</type><methodname>array_first</methodname>
1212
<methodparam><type>array</type><parameter>array</parameter></methodparam>
1313
</methodsynopsis>
14-
<para>
14+
<simpara>
1515
Get the first value of the given <parameter>array</parameter>.
16-
</para>
16+
</simpara>
1717
</refsect1>
1818

1919
<refsect1 role="parameters">
@@ -22,28 +22,27 @@
2222
<varlistentry>
2323
<term><parameter>array</parameter></term>
2424
<listitem>
25-
<para>
25+
<simpara>
2626
An array.
27-
</para>
27+
</simpara>
2828
</listitem>
2929
</varlistentry>
3030
</variablelist>
3131
</refsect1>
3232

3333
<refsect1 role="returnvalues">
3434
&reftitle.returnvalues;
35-
<para>
35+
<simpara>
3636
Returns the first value of <parameter>array</parameter> if the array is not empty;
3737
&null; otherwise.
38-
</para>
38+
</simpara>
3939
</refsect1>
4040

4141
<refsect1 role="examples">
4242
&reftitle.examples;
43-
<para>
44-
<example xml:id="array_first.example.basic">
45-
<title>Basic <function>array_first</function> Usage</title>
46-
<programlisting role="php">
43+
<example xml:id="array_first.example.basic">
44+
<title>Basic <function>array_first</function> Usage</title>
45+
<programlisting role="php">
4746
<![CDATA[
4847
<?php
4948
$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -53,15 +52,14 @@ $firstValue = array_first($array);
5352
var_dump($firstValue);
5453
?>
5554
]]>
56-
</programlisting>
57-
&example.outputs;
58-
<screen>
55+
</programlisting>
56+
&example.outputs;
57+
<screen>
5958
<![CDATA[
6059
string(1) "a"
6160
]]>
62-
</screen>
63-
</example>
64-
</para>
61+
</screen>
62+
</example>
6563
</refsect1>
6664

6765
<refsect1 role="seealso">

reference/array/functions/array-last.xml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<type>mixed</type><methodname>array_last</methodname>
1212
<methodparam><type>array</type><parameter>array</parameter></methodparam>
1313
</methodsynopsis>
14-
<para>
14+
<simpara>
1515
Get the last value of the given <parameter>array</parameter>.
16-
</para>
16+
</simpara>
1717
</refsect1>
1818

1919
<refsect1 role="parameters">
@@ -22,28 +22,27 @@
2222
<varlistentry>
2323
<term><parameter>array</parameter></term>
2424
<listitem>
25-
<para>
25+
<simpara>
2626
An array.
27-
</para>
27+
</simpara>
2828
</listitem>
2929
</varlistentry>
3030
</variablelist>
3131
</refsect1>
3232

3333
<refsect1 role="returnvalues">
3434
&reftitle.returnvalues;
35-
<para>
35+
<simpara>
3636
Returns the last value of <parameter>array</parameter> if the array is not empty;
3737
&null; otherwise.
38-
</para>
38+
</simpara>
3939
</refsect1>
4040

4141
<refsect1 role="examples">
4242
&reftitle.examples;
43-
<para>
44-
<example xml:id="array_last.example.basic">
45-
<title>Basic <function>array_last</function> Usage</title>
46-
<programlisting role="php">
43+
<example xml:id="array_last.example.basic">
44+
<title>Basic <function>array_last</function> Usage</title>
45+
<programlisting role="php">
4746
<![CDATA[
4847
<?php
4948
$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -53,15 +52,14 @@ $lastValue = array_last($array);
5352
var_dump($lastValue);
5453
?>
5554
]]>
56-
</programlisting>
57-
&example.outputs;
58-
<screen>
55+
</programlisting>
56+
&example.outputs;
57+
<screen>
5958
<![CDATA[
6059
string(1) "d"
6160
]]>
62-
</screen>
63-
</example>
64-
</para>
61+
</screen>
62+
</example>
6563
</refsect1>
6664

6765
<refsect1 role="seealso">

0 commit comments

Comments
 (0)