Skip to content

Commit 743f97d

Browse files
authored
Update get-sort-key.xml Fix extra */ (#4956)
1 parent 2b23224 commit 743f97d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/intl/collator/get-sort-key.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<programlisting role="php">
7171
<![CDATA[
7272
<?php
73+
7374
$s1 = 'Hello';
7475
7576
$coll = collator_create('en_US');
@@ -92,6 +93,7 @@ echo bin2hex($res);
9293
<programlisting role="php">
9394
<![CDATA[
9495
<?php
96+
9597
$data = [
9698
[ 'name' => '🇳🇱 Derick Rethans', 'linked_account' => 'https://phpc.social/users/derickr' ],
9799
[ 'name' => 'Elephpant', 'linked_account' => 'https://phpc.social/phpc' ],
@@ -105,7 +107,6 @@ $col = new Collator('en');
105107
$col->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
106108
107109
/* Use a user-defined function with sort, that strips out the emojis */
108-
*/
109110
usort(
110111
$data,
111112
function($a, $b) use ($col) {

0 commit comments

Comments
 (0)