[PHP] Re: Hi All

2003-07-23 Thread Peter Clarke
Shishir Kumar Mishra wrote: Hi All, I am reading one XML which has some german characters. I am sending this data to PHP script but when try to echo ;it prints some other character. eg. XML has für but output is coming like für ; My script is like following: ?php $loc = UTF-8;

[PHP] Re: Hi all! How to rite a cmp function for usort()?

2001-08-09 Thread Richard Lynch
my ISP doesn´t support natcasesort(), can anybody tell me how to write a cmp function? I couldn´t find a documentaton about it. function usort_text($value1, $value2){ if ($value1 == $value2){ $result = 0; } elseif ($value1 $value2){ $result = -1; } else{ #