Ich habe folgenden Script:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: | ".file_get_contents("data/users/$useremail/name.txt")."";
echo "Gewonnen: ".file_get_contents("data/users/$useremail/stats/wins.txt")." ";
echo "Verloren: ".file_get_contents("data/users/$useremail/stats/loses.txt")." ";
echo "Unentschieden: ".file_get_contents("data/users/$useremail/stats/draws.txt")." ";
echo "Reaktorzerstörungen: ".file_get_contents("data/users/$useremail/stats/reactor.txt")." ";
echo "Helden getötet: ".file_get_contents("data/users/$useremail/stats/herokills.txt")." ";
echo "Glue Assists: ".file_get_contents("data/users/$useremail/stats/glues.txt")." ";
echo "W/V: ";
$wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; }
echo "";
}
};
?>
|
Und nun will ich, dass die Ausgabe nach der W/V sortiert ist:
1:
2: | echo "W/V: ";
$wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; } |
Ist das möglich, oder nicht?