autly Posted February 6, 2009 Report Share Posted February 6, 2009 pienjemsim ka man ir $row['team1'] $row['team2'] $row['team3'] $row['team4'] ...... $row['team1'] vienaads ar 3 $row['team2'] vienaads ar 2 $row['team3'] vienaads ar 1 $row['team4'] vienaads ar 0 Man vajag dabuut lielaako un otru lielaako, jeb team1, un team2.. kaa buutu pareizaak, un kvalitatiivaak to izdariit? Link to comment Share on other sites More sharing options...
marcis Posted February 6, 2009 Report Share Posted February 6, 2009 $max1=max($row); unset($row[array_search($max1,$row)]); $max2=max($row); Link to comment Share on other sites More sharing options...
Delfins Posted February 6, 2009 Report Share Posted February 6, 2009 ko nozīmē dabūt? izdrukāt? - sabāz masīvā - krsort($arr, SORT_NUMERIC) - drukājam Link to comment Share on other sites More sharing options...
mounkuls Posted February 8, 2009 Report Share Posted February 8, 2009 Man vajag dabuut lielaako un otru lielaako Nu bet tad jau viegli. Ja lielāko un piekto lielāko, tad uzdevums būtu, bet pirmos divus... Link to comment Share on other sites More sharing options...
Recommended Posts