On Wed, 15 Sep 2004 16:41:41 +0800, Lian <Li**@hehe.net> wrote:
I am confused by the rule of comparing two unicode string using
function "strcmp".
For exmaple, using "strcmp" to compare two Chinese uincode string,
depending on what rule can "PHP" decide one string is greater or less
than the other string?
If you use strcmp, it'll just do a comparison of the (presumably UTF-8)
encoding, which will have nothing to do with the characters themselves.
See
http://www.unicode.org/reports/tr10/ for details on sorting Unicode
strings, but I don't think PHP has an implementation of this.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool