function cmp($str1, $str2) { $length1 = strlen($str1); $length2 = strlen($str2); if ($length1 == $length2) return 0; return ($length1 < $length2) ? -1 : 1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)