note 96936 rejected from function.asort by danbrown
| From: | danbrown@php.net | Date: | Wed, 24 Mar 2010 04:13:29 +0000 |
| Subject: | note 96936 rejected from function.asort by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167338@lists.php.net to get a copy of this message | ||
Note Submitter: IzzeCold at hotmail dot com
----
Ok, guys i need your help :(
I'm trying to make a WebInterface For Counter-Strike: Source and would like to output the
NowPlaying Players Sorted by score. I tried it for two days, but still not yet found a solution.
I would like to have the Array below like this in a while or foreach fuction:
Bill - 4
Ian - 3
Irving - 2
Adam - 1
IzzeCold - 0
Alfred - 0
Bill's Scores are outputted like this:
echo $results[test_server][players][1][score]
array(6) {
[0]=> array(4)
{
["id"]=> int(0)
["name"]=> string(26) "::. GnA .:: IzzeCÃld [HD]"
["score"]=> int(0)
["time"]=> float(1468.99694824)
}
[1]=> array(4)
{
["id"]=> int(1)
["name"]=> string(4) "Bill"
["score"]=> int(4)
["time"]=> float(-1)
}
[2]=> array(4)
{
["id"]=> int(2)
["name"]=> string(6) "Irving"
["score"]=> int(2)
["time"]=> float(-1)
}
[3]=> array(4)
{
["id"]=> int(3)
["name"]=> string(4) "Adam"
["score"]=> int(1)
["time"]=> float(-1)
}
[4]=> array(4)
{
["id"]=> int(4)
["name"]=> string(6) "Alfred"
["score"]=> int(0)
["time"]=> float(-1)
}
[5]=> array(4)
{
["id"]=> int(5)
["name"]=> string(3) "Ian"
["score"]=> int(3)
["time"]=> float(-1) }
}
hope you can help me
Contact via Steam: 19warlock88
Hotmail: IzzeCold (at) live (dot) de