We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*/
1 parent 2b23224 commit 743f97dCopy full SHA for 743f97d
reference/intl/collator/get-sort-key.xml
@@ -70,6 +70,7 @@
70
<programlisting role="php">
71
<![CDATA[
72
<?php
73
+
74
$s1 = 'Hello';
75
76
$coll = collator_create('en_US');
@@ -92,6 +93,7 @@ echo bin2hex($res);
92
93
94
95
96
97
$data = [
98
[ 'name' => '🇳🇱 Derick Rethans', 'linked_account' => 'https://phpc.social/users/derickr' ],
99
[ 'name' => 'Elephpant', 'linked_account' => 'https://phpc.social/phpc' ],
@@ -105,7 +107,6 @@ $col = new Collator('en');
105
107
$col->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
106
108
109
/* Use a user-defined function with sort, that strips out the emojis */
- */
110
usort(
111
$data,
112
function($a, $b) use ($col) {
0 commit comments