>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{ # $value1 > $value2
$result = 1;
}
return $result;
}
You'll probably need more complex accessing/tests for the ==, <, and >
expressions.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]