Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> "Przeniesienie" klasy do tabeli
Sielly
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 28.01.2010

Ostrzeżenie: (0%)
-----


Witajcie,

mam następujący kod:

  1. $wot = new Wot('EU', 'pl', '42e2516b1f3704ef9d39ac4009d222d9'); // region, language, your <app_id_here>
  2. $fields = Array(); // Make a full request only for develop. Select only usable fields in production for less request size
  3.  
  4. print_r($wot -> getUser('info', '514406449', $fields));


Po odwiedzeniu strony otrzymuję taki efekt:


Kod
stdClass Object
(
    [514406449] => stdClass Object
        (
            [client_language] => pl
            [last_battle_time] => 1478816959
            [account_id] => 514406449
            [created_at] => 1380994468
            [updated_at] => 1478816959
            [private] =>
            [ban_time] =>
            [global_rating] => 3145
            [clan_id] => 500135662
            [statistics] => stdClass Object
                (
                    [clan] => stdClass Object
                        (
                            [spotted] => 0
                            [avg_damage_assisted_track] => 0
                            [avg_damage_blocked] => 0
                            [direct_hits_received] => 0
                            [explosion_hits] => 0
                            [piercings_received] => 0
                            [piercings] => 0
                            [xp] => 0
                            [survived_battles] => 0
                            [dropped_capture_points] => 0
                            [hits_percents] => 0
                            [draws] => 0
                            [battles] => 0
                            [damage_received] => 0
                            [avg_damage_assisted] => 0
                            [frags] => 0
                            [avg_damage_assisted_radio] => 0
                            [capture_points] => 0
                            [hits] => 0
                            [battle_avg_xp] => 0
                            [wins] => 0
                            [losses] => 0
                            [damage_dealt] => 0
                            [no_damage_direct_hits_received] => 0
                            [shots] => 0
                            [explosion_hits_received] => 0
                            [tanking_factor] => 0
                        )
/* i tak dalej */



Chciałbym to wszystko uporządkować w jakiejś tablicy, ktoś ma pomysł jak to zrobić?

Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 00:33