[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: Don't mention sorting but comparison (#2301)
From:       Daniel Siepmann via GitHub <noreply () php ! net>
Date:       2023-02-17 19:28:45
Message-ID: MlGIcr5IewkGQLm3lKIdFqT3ZRMB7sGKieLm66VIsc () main ! php ! net
[Download RAW message or body]

Author: Daniel Siepmann (DanielSiepmann)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2023-02-17T20:15:38+01:00

Commit: https://github.com/php/doc-en/commit/3ba15fd3dfb8196a1762b1a21a14311e0279284b
Raw diff: https://github.com/php/doc-en/commit/3ba15fd3dfb8196a1762b1a21a14311e0279284b.diff

Don't mention sorting but comparison (#2301)

The array_unique function doesn't sort, but compares.
It uses the same constants but terms are mixed up.
The text uses "sorting" while each constant uses "compare".

This is now streamlined in order to reduce friction while reading.

Changed paths:
  M  reference/array/functions/array-unique.xml


Diff:

diff --git a/reference/array/functions/array-unique.xml b/reference/array/functions/array-unique.xml
index d44bcb98646..954a8ae1140 100644
--- a/reference/array/functions/array-unique.xml
+++ b/reference/array/functions/array-unique.xml
@@ -48,10 +48,10 @@
      <listitem>
       <para>
        The optional second parameter <parameter>flags</parameter>
-       may be used to modify the sorting behavior using these values:
+       may be used to modify the comparison behavior using these values:
       </para>
       <para>
-       Sorting type flags:
+       Comparison type flags:
        <itemizedlist>
         <listitem>
          <simpara><constant>SORT_REGULAR</constant> - compare items normally

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic