[DOC-CVS] [doc-en] master: Markup nits for new array_first and array_last function docs
[email protected] (Gina Peter Banyard)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias)
Date: 2025-11-04T06:42:38Z
Commit: https://github.com/php/doc-en/commit/b68b5e427e7454a59437dd6f7ff27b4f9228fe6d
Raw diff: https://github.com/php/doc-en/commit/b68b5e427e7454a59437dd6f7ff27b4f9228fe6d.diff
Markup nits for new array_first and array_last function docs
Changed paths:
M reference/array/functions/array-first.xml
M reference/array/functions/array-last.xml
Diff:
diff --git a/reference/array/functions/array-first.xml b/reference/array/functions/array-first.xml
index f661cb6d1826..6423fdd71fe1 100644
--- a/reference/array/functions/array-first.xml
+++ b/reference/array/functions/array-first.xml
@@ -11,9 +11,9 @@
<type>mixed</type><methodname>array_first</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
- <para>
+ <simpara>
Get the first value of the given <parameter>array</parameter>.
- </para>
+ </simpara>
</refsect1>
<refsect1 role="parameters">
@@ -22,9 +22,9 @@
<varlistentry>
<term><parameter>array</parameter></term>
<listitem>
- <para>
+ <simpara>
An array.
- </para>
+ </simpara>
</listitem>
</varlistentry>
</variablelist>
@@ -32,18 +32,17 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
- <para>
+ <simpara>
Returns the first value of <parameter>array</parameter> if the array is not empty;
&null; otherwise.
- </para>
+ </simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
- <para>
- <example xml:id="array_first.example.basic">
- <title>Basic <function>array_first</function> Usage</title>
- <programlisting role="php">
+ <example xml:id="array_first.example.basic">
+ <title>Basic <function>array_first</function> Usage</title>
+ <programlisting role="php">
<![CDATA[
<?php
$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -53,15 +52,14 @@ $firstValue = array_first($array);
var_dump($firstValue);
?>
]]>
- </programlisting>
- &example.outputs;
- <screen>
+ </programlisting>
+ &example.outputs;
+ <screen>
<![CDATA[
string(1) "a"
]]>
- </screen>
- </example>
- </para>
+ </screen>
+ </example>
</refsect1>
<refsect1 role="seealso">
diff --git a/reference/array/functions/array-last.xml b/reference/array/functions/array-last.xml
index 5684416750e5..2617b54c0cc5 100644
--- a/reference/array/functions/array-last.xml
+++ b/reference/array/functions/array-last.xml
@@ -11,9 +11,9 @@
<type>mixed</type><methodname>array_last</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
- <para>
+ <simpara>
Get the last value of the given <parameter>array</parameter>.
- </para>
+ </simpara>
</refsect1>
<refsect1 role="parameters">
@@ -22,9 +22,9 @@
<varlistentry>
<term><parameter>array</parameter></term>
<listitem>
- <para>
+ <simpara>
An array.
- </para>
+ </simpara>
</listitem>
</varlistentry>
</variablelist>
@@ -32,18 +32,17 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
- <para>
+ <simpara>
Returns the last value of <parameter>array</parameter> if the array is not empty;
&null; otherwise.
- </para>
+ </simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
- <para>
- <example xml:id="array_last.example.basic">
- <title>Basic <function>array_last</function> Usage</title>
- <programlisting role="php">
+ <example xml:id="array_last.example.basic">
+ <title>Basic <function>array_last</function> Usage</title>
+ <programlisting role="php">
<![CDATA[
<?php
$array = [1 => 'a', 0 => 'b', 3 => 'c', 2 => 'd'];
@@ -53,15 +52,14 @@ $lastValue = array_last($array);
var_dump($lastValue);
?>
]]>
- </programlisting>
- &example.outputs;
- <screen>
+ </programlisting>
+ &example.outputs;
+ <screen>
<![CDATA[
string(1) "d"
]]>
- </screen>
- </example>
- </para>
+ </screen>
+ </example>
</refsect1>
<refsect1 role="seealso">