mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #75787: Array iterator functions misleading
This commit is contained in:
parent
efaedacb53
commit
a6655e3f95
2 changed files with 5 additions and 6 deletions
|
@ -105,13 +105,12 @@ array_key_exists('first', $search_array);
|
|||
For backward compatibility reasons, <function>array_key_exists</function>
|
||||
will also return &true; if <parameter>key</parameter> is a property
|
||||
defined within an <type>object</type> given as
|
||||
<parameter>array</parameter>. This behaviour should not be relied upon,
|
||||
and care should be taken to ensure that <parameter>array</parameter> is
|
||||
an <type>array</type>.
|
||||
<parameter>array</parameter>. This behaviour is deprecated as of PHP 7.4.0,
|
||||
and removed as of PHP 8.0.0.
|
||||
</para>
|
||||
<para>
|
||||
To check whether a property exists in an object, use
|
||||
<function>property_exists</function>.
|
||||
To check whether a property exists in an object,
|
||||
<function>property_exists</function> should be used.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>each</methodname>
|
||||
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
|
||||
<methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Return the current key and value pair from an array and advance the array
|
||||
|
|
Loading…
Reference in a new issue