mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
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:
parent
014d61c8d5
commit
7d92d6cef0
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue