note 96936 added to function.asort
| From: | IzzeCold at hotmail dot com | Date: | Wed, 24 Mar 2010 02:23:45 +0000 |
| Subject: | note 96936 added to function.asort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167337@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 91.23.163.16
----
Manual Page -- http://www.php.net/manual/en/function.asort.php
Edit -- https://master.php.net/note/edit/96936
Del: integrated -- https://master.php.net/note/delete/96936/integrated
Del: useless -- https://master.php.net/note/delete/96936/useless
Del: bad code -- https://master.php.net/note/delete/96936/bad+code
Del: spam -- https://master.php.net/note/delete/96936/spam
Del: non-english -- https://master.php.net/note/delete/96936/non-english
Del: in docs -- https://master.php.net/note/delete/96936/in+docs
Del: other reasons-- https://master.php.net/note/delete/96936
Reject -- https://master.php.net/note/reject/96936
Search -- https://master.php.net/manage/user-notes.php