|
查看: 737|回复: 1
|
PHP sorting 问题
[复制链接]
|
|
|
我的code 如下
<?
$countTitle = 10;
for($i=0; $i<$countTitle; $i++){
$score_a = 10;
$score_b = $addition[$i] * 2;
$score_total[$i] = $score_a + $score_b;
?>
<tr>
<td><?=$score_total[$i]?></td>
<td><?=$id?></td>
<td><?=$name?></td>
</tr>
<?
}
?>
我想要output直接显示 sorting by $score_total[$i]
请问要如何做到?
能用 sort($score_total); 吗? |
|
|
|
|
|
|
|
|
|
|
发表于 26-4-2007 02:43 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|