note 86295 added to function.asort
| From: | ThA-B at osu1 dot php dot net | Date: | Sat, 11 Oct 2008 12:11:13 +0000 |
| Subject: | note 86295 added to function.asort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145273@lists.php.net to get a copy of this message | ||
mzvarik at gmail dot com!
Your post at 16-Jan-2008 12:46 saved my life, so I request it not to be deleted, but put somewhere
in more visible place.
I got situation, where server is not (and will not be) configured properly and latvian language can
not be recognized neither in setlocale or sort functions.
Latvian is also known as ISO-8859-13, lv_LV, lv, lv_LV.ISO-8859-13, cp1257, windows-1257, etc. And
because non of them worked with setlocale() and sort() under win32/php5.2.1 environment, i used your
functions MySort() and myStrCmp() with slight change:
$cz_chars = 'Aa ÄÄ Bb Cc ÄÄ Dd Ee ÄÄ Ff Gg Ģģ Hh Ii Īī Jj Kk
Ķķ Ll Ļļ Mm Nn Å
ŠOo Pp Rr Ss Šš Tt Uu Ūū Vv Zz Žž';
voila!
Thank You very very much!
----
Server IP: 81.198.190.2
Probable Submitter: 80.233.166.152
----
Manual Page -- http://www.php.net/manual/en/function.asort.php
Edit -- https://master.php.net/note/edit/86295
Del: integrated -- https://master.php.net/note/delete/86295/integrated
Del: useless -- https://master.php.net/note/delete/86295/useless
Del: bad code -- https://master.php.net/note/delete/86295/bad+code
Del: spam -- https://master.php.net/note/delete/86295/spam
Del: non-english -- https://master.php.net/note/delete/86295/non-english
Del: in docs -- https://master.php.net/note/delete/86295/in+docs
Del: other reasons-- https://master.php.net/note/delete/86295
Reject -- https://master.php.net/note/reject/86295
Search -- https://master.php.net/manage/user-notes.php