reference/array/functions/array-pop.xml
d93972fb2d8855d7953d1f09aba48f53c870b135
...
...
@@ -13,8 +13,8 @@
13
13
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
<function>array_pop</function> pops and returns the last value of
17
-
the <parameter>array</parameter>, shortening the
16
+
<function>array_pop</function> pops and returns the value of
17
+
the last element of <parameter>array</parameter>, shortening the
18
18
<parameter>array</parameter> by one element.
19
19
</para>
20
20
&array.resetspointer;
...
...
@@ -39,20 +39,12 @@
39
39
<refsect1 role="returnvalues">
40
40
&reftitle.returnvalues;
41
41
<para>
42
-
Returns the last value of <parameter>array</parameter>.
43
-
If <parameter>array</parameter> is empty (or is not an array),
42
+
Returns the value of the last element of <parameter>array</parameter>.
43
+
If <parameter>array</parameter> is empty,
44
44
&null; will be returned.
45
45
</para>
46
46
</refsect1>
47
47

48
-
<refsect1 role="errors">
49
-
&reftitle.errors;
50
-
<para>
51
-
This function will produce an error of level <link linkend="errorfunc.constants">
52
-
E_WARNING</link> when called on a non-array.
53
-
</para>
54
-
</refsect1>
55
-

56
48
<refsect1 role="examples">
57
49
&reftitle.examples;
58
50
<para>
59
51