« first day (4015 days earlier)      last day (24 days later) » 

04:54
[tag:php] Granted there are probably other dupes, but assuming there are only these two, which should be signpost for the other?
[array_diff() removes elements from the result even if values match but keys are different](https://stackoverflow.com/q/12004231/2943403) (asked 2012) has 2k pageviews (before my edit the title was horrible/vague), +10 Question, +11 Accepted Answer, 2 Answers, and an Unclear MCVE.

[array_diff() is filtering out elements with the same value even if their associative keys do not match](https://stackoverflow.com/q/40216905/2943403) (asked 2016) has 64 pageviews (bef
 
2 hours later…
06:49
@mickmackusa (you probably noticed, but you can't use markdown formatting in multi-line messages in chat)
@tripleee So, for it to look pretty now, someone with edit privileges would need to remove the newlines? I made the mistake of copy-pasting from a notepad when I was creating the text.
something like that yeah
@mickmackusa by those metrics alone the first one seems like a better dupe target, if the answers are varied and correct
@tripleee despite the fact that the presented question does not have the necessary data to reproduce the issue?
like I said, "by these metrics alone"; I don't know PHP and I haven't actually looked at the posts
This is why I included "Unclear MCVE" and "a clear, immediately reproducible MCVE" with the metrics -- so that non-PHP devs understand and don't need to visit the page.
06:56
having looked at them now I guess the second one has less fluff, if the two near-identical answers are all there is to it
 
2 hours later…
09:06
@mickmackusa I guess I'd better gather a heap before swinging hammers around. array_diff() isn't respecting keys when comparing values in two flat associative arrays (asked 2016) has 505 pageviews (before my edit the title was vague), +2 Question, +3 Accepted Answer, 2 Answers, and a clear/reproducible MCVE.
 
1 hour later…
 
4 hours later…
 
2 hours later…
 
1 hour later…
 
2 hours later…
@mickmackusa I think the older one should be closed as a dupe of the newer one; newer one isn't lacking an MCVE and the answer has a quote from the documentation, so it wins for me, personally
20:25
I agree, the MCVE is better in the newer one
 
2 hours later…

« first day (4015 days earlier)      last day (24 days later) »