@ 2014-01-15T07:14:17Z <?php
header('Content-Type: text/html; charset=utf-8');
echo "<pre>";
setlocale(LC_ALL, 'cs_CZ.UTF-8', 'Czech');
echo "Nastaveny locale: ". setlocale(LC_ALL, 0) . "\n";
$countries = array(
'Bulharsko',
'Česko',
'Polsko',
'Čína'
);
sort($countries, SORT_LOCALE_STRING);
print_r($countries);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.2.29 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.3 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 <pre>Nastaveny locale: cs_CZ.UTF-8
Array
(
[0] => Bulharsko
[1] => Česko
[2] => Čína
[3] => Polsko
)
Output for 4.4.0 - 4.4.9 , 5.0.2 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.25 , 7.3.0 - 7.3.12 , 7.4.0 <pre>Nastaveny locale: C
Array
(
[0] => Bulharsko
[1] => Polsko
[2] => Česko
[3] => Čína
)
Output for 4.3.0 - 4.3.11 , 5.0.0 - 5.0.1 <pre>Nastaveny locale: C
Notice: Use of undefined constant SORT_LOCALE_STRING - assumed 'SORT_LOCALE_STRING' in /in/1AUrV on line 13
Warning: sort() expects parameter 2 to be long, string given in /in/1AUrV on line 13
Array
(
[0] => Bulharsko
[1] => Česko
[2] => Polsko
[3] => Čína
)
preferences:dark mode live preview
271.19 ms | 402 KiB | 453 Q