php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78403 array_diff() no longer explicitly mentions key preservation
Submitted: 2019-08-12 07:51 UTC Modified: -
From: roy-orbison at devo dot net dot au Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
20 + 24 = ?
Subscribe to this entry?

 
 [2019-08-12 07:51 UTC] roy-orbison at devo dot net dot au
Description:
------------
---
From manual page: https://php.net/function.array-diff
---

It's implied from the example, but should be stated clearly that keys of the values in the first array are used for constructing the resultant array, regardless of the keys' types.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 24 18:01:23 2021 UTC