Skip to content

Commit 0d842e6

Browse files
committed
Update get-sort-key.xml Fix extra */
php/doc-en@743f97d
1 parent 1c0a6b2 commit 0d842e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: bfc89e697fd685a7d15177f0b014eba70c5f9931 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 743f97dd06d53872e4f498141f57950afda34659 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="collator.getsortkey" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -72,6 +72,7 @@
7272
<programlisting role="php">
7373
<![CDATA[
7474
<?php
75+
7576
$s1 = 'Hello';
7677
7778
$coll = collator_create('en_US');
@@ -94,6 +95,7 @@ echo bin2hex($res);
9495
<programlisting role="php">
9596
<![CDATA[
9697
<?php
98+
9799
$data = [
98100
[ 'name' => '🇳🇱 Derick Rethans', 'linked_account' => 'https://phpc.social/users/derickr' ],
99101
[ 'name' => 'Elephpant', 'linked_account' => 'https://phpc.social/phpc' ],
@@ -107,7 +109,6 @@ $col = new Collator('en');
107109
$col->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
108110
109111
/* Use a user-defined function with sort, that strips out the emojis */
110-
*/
111112
usort(
112113
$data,
113114
function($a, $b) use ($col) {

0 commit comments

Comments
 (0)