arrya_pop/array_shift return NULL when passed empty arrays, bug #8106

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43734 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2001-03-17 05:29:09 +00:00
parent 014d61c8d5
commit 7d92d6cef0

View file

@ -614,7 +614,9 @@ $result = array_pad ($input, 2, "noop");
<para>
<function>Array_pop</function> pops and returns the last value of
the <parameter>array</parameter>, shortening the
<parameter>array</parameter> by one element.
<parameter>array</parameter> by one element.
If <param>array</param> is empty (or is not an array),
<varname>NULL</varname> will be returned.
</para>
<para>
<example>
@ -808,6 +810,8 @@ $result_keyed = array_reverse ($input, TRUE);
<parameter>array</parameter> off and returns it, shortening the
<parameter>array</parameter> by one element and moving everything
down.
If <param>array</param> is empty (or is not an array),
<varname>NULL</varname> will be returned.
</para>
<para>
<example>