Bug->Doc #69555 [Opn->Fbk]: unpredictable results with array_udiff example
| From: | cmb@php.net | Date: | Thu, 30 Apr 2015 20:13:41 +0000 |
| Subject: | Bug->Doc #69555 [Opn->Fbk]: unpredictable results with array_udiff example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12277@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69555&edit=1
ID: 69555
Updated by: cmb@php.net
Reported by: buero at wehrstedt dot com
Summary: unpredictable results with array_udiff example
-Status: Open
+Status: Feedback
-Type: Bug
+Type: Documentation Problem
-Package: Website problem
+Package: Arrays related
Operating System: XAMPP
PHP Version: 5.4Git-2015-04-30 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
To which example are you referring to? Example#2 uses $a == $b,
what is correct, because DateTime instances are compared.
Previous Comments:
------------------------------------------------------------------------
[2015-04-30 19:35:26] buero at wehrstedt dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-udiff
---
I tried out the example shown with function array_udiff. The example sets a property in the cr
class, the compare function compares boolena instead of numerical.
I tried this example; as soon as I changed to $a == $b instead of $a === $b, I've got the
results I exspected.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69555&edit=1