File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 >
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- */
111112usort(
112113 $data,
113114 function($a, $b) use ($col) {
You can’t perform that action at this time.
0 commit comments