all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
function mycmp($s1, $s2)
|
||||
{
|
||||
if ($d = strlen($s2) - strlen($s1))
|
||||
return $d;
|
||||
return strcasecmp($s1, $s2);
|
||||
}
|
||||
|
||||
$strings = array("Here", "are", "some", "sample", "strings", "to", "be", "sorted");
|
||||
usort($strings, "mycmp");
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue