Skip to content

Instantly share code, notes, and snippets.

@Kcko
Last active August 29, 2015 14:01
Show Gist options
  • Save Kcko/0bea4e21029cfe38f980 to your computer and use it in GitHub Desktop.
Save Kcko/0bea4e21029cfe38f980 to your computer and use it in GitHub Desktop.
czech sorting
<?php
setlocale(LC_ALL, 'cs_CZ.UTF-8');
header("content-type: text/html; charset=UTF-8");
$arr = explode(",", "č, d, b, a, š, ř, o, x, z, ž, á, s, m");
uasort($arr, "strcoll");
echo "<pre>" . print_r($arr, 1) . "</pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment