Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 9
    +1 array_unique returns an object with key and value pairs AND array_values return only values as an array. Commented Sep 21, 2018 at 17:16
  • 2
    @narainsagar (and the 8 comment upvoters)... What?!? array_unique() DEMANDS an array as the first parameter. And array_values() DEMANDS an array as its parameter. If you are dealing with an object, then this code will break. Please do not mislead researchers with untruths. Commented May 20, 2023 at 22:38