求3值最大值的函数

function sum_3($a,$b,$c){ $a>$b?$max=$a:$max=$breturn $max>$c?$max:$c; }

 

$d = $a > $b ? $b : $a$s = $d > $c ? $d : $cecho $s

 

 

posted @ 2010-01-19 21:26  Wamei  阅读(276)  评论(3编辑  收藏  举报