return -1; } else { return 0; } } } $wordArray[$cnt] = $word; $i = 0; for ($i = 0; $i <= $cnt; $i++) { for ($j = $i; $j <= $cnt; $j++) { if (Len($wordArray[$i]) > Len($wordArray[$j])) { $tmp = $wordArray[$i]; $wordArray[$i] = $wordArray[$j]; $wordArray[$j] = $tmp; } if (Len($wordArray[$i]) == Len($wordArray[$j])) { if (Cmp($wordArray[$i], $wordArray[$j]) == 1) { $tmp = $wordArray[$j]; $wordArray[$j] = $wordArray[$i]; $wordArray[$i] = $tmp; } } } } $i = 0; ?> <div id="mainform"> <div class="innerdiv" style="margin: -100px 0 0 200px"> <h3>Result</h3>
function phpStrLen_temp($content) { return Len($content); }