Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 4 655 Pomógł: 556 Dołączył: 17.03.2009 Skąd: Katowice Ostrzeżenie: (0%)
|
Otóż mam tablicę (dla przykładu) :
CODE Array ( [0] => Array ( [0] => 2 [1] => gold ingots ) [1] => Array ( [0] => 93 [1] => gold coins ) [2] => Array ( [0] => 72 [1] => gold coins ) [3] => a spellbook of dark mysteries [4] => Array ( [0] => 32 [1] => small rubies ) [5] => glacier kilt [6] => an abyss hammer [7] => a havoc blade [8] => a berserker [9] => a mastermind shield [10] => Ferumbras' hat [11] => Array ( [0] => 2 [1] => gold ingots ) [12] => Array ( [0] => 93 [1] => gold coins ) [13] => Array ( [0] => 78 [1] => gold coins ) [14] => a spellbook of dark mysteries [15] => Array ( [0] => 32 [1] => small rubies ) [16] => glacier kilt [17] => an abyss hammer [18] => a havoc blade [19] => a berserker [20] => a mastermind shield [21] => Ferumbras' hat [22] => Array ( [0] => 2 [1] => gold ingots ) [23] => Array ( [0] => 93 [1] => gold coins ) [24] => Array ( [0] => 71 [1] => gold coins ) [25] => a spellbook of dark mysteries [26] => Array ( [0] => 32 [1] => small rubies ) [27] => glacier kilt [28] => an abyss hammer [29] => a havoc blade [30] => a berserker [31] => a mastermind shield [32] => Ferumbras' hat ) Teraz chciałbym jakoś zliczyć np. small rubies, glacier kilt etc. czyli wszystko co się powtarza do siebie dodać. (IMG:http://forum.php.pl/style_emoticons/default/haha.gif) Ma ktoś pomysł? Bo już doprowadziłem ze stringu do takiego stanu, że wcale to nie powinno być trudne jednak mój umysł sobie o tej godzinie z tym nie radzi. (IMG:http://forum.php.pl/style_emoticons/default/haha.gif) |
|
|
|
fifi209 [PHP] Tablica zliczanie ? 5.06.2009, 22:44:12
tomsi http://www.webdeveloper.pl/manual/show.php?str=arr... 5.06.2009, 23:23:41
kallosz http://pl.php.net/manual/pl/function.array-count-v... 6.06.2009, 07:55:57
tomsi No przecież taką funkcję mu podałem. 6.06.2009, 10:23:12
fifi209 A zabrał ktoś pod uwagę, iż jest to dwuwymiarowa t... 6.06.2009, 10:25:08
erix Chyba zwrócił...
Mógłbyś z łaski swojej poczytać,... 6.06.2009, 12:32:20
fifi209 Pozwól więc, jeżeli tak uważasz ... 6.06.2009, 18:53:10 ![]() ![]() |
|
Aktualny czas: 29.06.2026 - 05:13 |