the usort 's puzzle
- From: youngord@xxxxxxxxx
- Date: Sun, 30 Sep 2007 03:40:22 -0000
<?php
$mix=array(
array("A",10),
array("B",5),
array("C",100)
);
function com($x,$y){
echo $x[0];
}
usort($mix,'com');
?>
i think the $x[0] result is A,
but the final $x[0] result is BC.
why???
.
- Follow-Ups:
- Re: the usort 's puzzle
- From: J.O. Aho
- Re: the usort 's puzzle
- From: Jerry Stuckle
- Re: the usort 's puzzle
- Prev by Date: Re: url and no php file see
- Next by Date: Determine if string is all uppercase?
- Previous by thread: url and no php file see
- Next by thread: Re: the usort 's puzzle
- Index(es):