autly Posted February 6, 2009 Report 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?
marcis Posted February 6, 2009 Report Posted February 6, 2009 $max1=max($row); unset($row[array_search($max1,$row)]); $max2=max($row);
Delfins Posted February 6, 2009 Report Posted February 6, 2009 ko nozīmē dabūt? izdrukāt? - sabāz masīvā - krsort($arr, SORT_NUMERIC) - drukājam
mounkuls Posted February 8, 2009 Report 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...
Recommended Posts