Last active
September 7, 2018 04:24
-
-
Save qwersk/035aa5ed792b2c2c3d9e58a7481e3b4b to your computer and use it in GitHub Desktop.
Array sorting by alphabet #PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
setlocale(LC_ALL, 'ru_RU.CP1251', 'rus_RUS.CP1251', 'Russian_Russia.1251'); | |
sort($example, SORT_LOCALE_STRING); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment