"; $sanguo=array(array('name'=>'liubei','yuwen'=>89,'shuxue'=>67), array('name'=>'guanyu','yuwen'=>45,'shuxue'=>22), array('name'=>'zhangfei','yuwen'=>12,'shuxue'=>5), array('name'=>'caocao','yuwen'=>75,'shuxue'=>24),); print_r($sanguo); $max=$sanguo[0]['yuwen']+$sanguo[0]['shuxue']; $p=0; for($i=0;$i分数为".$max;