[DOC-CVS] [doc-en] master: Update get-sort-key.xml Fix extra `*/` (#4956)
[email protected] (Mikhail Alferov via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Mikhail Alferov (mmalferov)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2025-10-26T15:59:26+01:00
Commit: https://github.com/php/doc-en/commit/743f97dd06d53872e4f498141f57950afda34659
Raw diff: https://github.com/php/doc-en/commit/743f97dd06d53872e4f498141f57950afda34659.diff
Update get-sort-key.xml Fix extra `*/` (#4956)
Changed paths:
M reference/intl/collator/get-sort-key.xml
Diff:
diff --git a/reference/intl/collator/get-sort-key.xml b/reference/intl/collator/get-sort-key.xml
index e7e1799564e8..e3ef8ff654d9 100644
--- a/reference/intl/collator/get-sort-key.xml
+++ b/reference/intl/collator/get-sort-key.xml
@@ -70,6 +70,7 @@
<programlisting role="php">
<![CDATA[
<?php
+
$s1 = 'Hello';
$coll = collator_create('en_US');
@@ -92,6 +93,7 @@ echo bin2hex($res);
<programlisting role="php">
<![CDATA[
<?php
+
$data = [
[ 'name' => '🇳🇱 Derick Rethans', 'linked_account' => 'https://phpc.social/users/derickr' ],
[ 'name' => 'Elephpant', 'linked_account' => 'https://phpc.social/phpc' ],
@@ -105,7 +107,6 @@ $col = new Collator('en');
$col->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
/* Use a user-defined function with sort, that strips out the emojis */
- */
usort(
$data,
function($a, $b) use ($col) {