rfc:list_assoc_unique

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:list_assoc_unique [2022/12/01 17:59] ilutovrfc:list_assoc_unique [2022/12/01 18:19] (current) – Move to under discussion ilutov
Line 2: Line 2:
   * Date: 2022-12-01   * Date: 2022-12-01
   * Author: Ilija Tovilo <ilutov@php.net>   * Author: Ilija Tovilo <ilutov@php.net>
-  * Status: Draft+  * Status: Under discussion
   * Proposed Version: PHP 8.3   * Proposed Version: PHP 8.3
   * Implementation: https://github.com/php/php-src/pull/9882   * Implementation: https://github.com/php/php-src/pull/9882
Line 41: Line 41:
 Removing duplicates from arrays is a common use case provided by many programming languages. PHPs <php>array_unique()</php> Removing duplicates from arrays is a common use case provided by many programming languages. PHPs <php>array_unique()</php>
 has been there for [[https://github.com/php/php-src/commit/99f151f1bde0483944767cf0ed49d3270f61d326|~23 years]]. has been there for [[https://github.com/php/php-src/commit/99f151f1bde0483944767cf0ed49d3270f61d326|~23 years]].
-However, PHP has multiple definitions of equality, four in particular supported by <php>array_unique</php>:+However, PHP has multiple definitions of equality, four in particular supported by <php>array_unique()</php>:
  
   * <php>SORT_STRING</php> - Converts values to strings and compares with <php><</php>/<php>==</php>/<php>></php>   * <php>SORT_STRING</php> - Converts values to strings and compares with <php><</php>/<php>==</php>/<php>></php>
rfc/list_assoc_unique.1669917549.txt.gz · Last modified: 2022/12/01 17:59 by ilutov