mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add the note to array_intersect too
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@57558 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a3b8d41417
commit
1a756d07d0
1 changed files with 15 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.93 $ -->
|
||||
<!-- $Revision: 1.94 $ -->
|
||||
<reference id="ref.array">
|
||||
<title>Array Functions</title>
|
||||
<titleabbrev>Arrays</titleabbrev>
|
||||
|
@ -366,6 +366,20 @@ $result = array_intersect ($array1, $array2);
|
|||
This makes <varname>$result</varname> have <literal>array ("a"
|
||||
=> "green", "red");</literal>
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
Two elements are considered equal if and only if
|
||||
<literal>(string) $elem1 === (string) $elem2</literal>. In words:
|
||||
when the string representation is the same.
|
||||
<!-- TODO: example of it... -->
|
||||
</simpara>
|
||||
</note>
|
||||
<warning>
|
||||
<simpara>
|
||||
This was broken in PHP 4.0.4!
|
||||
<!-- TODO: when exactly was this broken?... -->
|
||||
</simpara>
|
||||
</warning>
|
||||
<para>
|
||||
See also <function>array_diff</function>.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue