Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> tablica w tablicy tablicy
jarecki747
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 13.05.2020

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


Cześć

Możecie mi podpowiedzieć jak wyświetlić dane z tej tablicy ?

nazwa tablicy to $user

Odpowiedź print_r($user);

Array ( [cpanelresult] => Array ( [module] => Variables [result] => Array ( [status] => 1 [warnings] => [metadata] => Array ( ) [messages] => [data] => Array ( [user] => thor ) [errors] => ) [func] => get_user_information [apiversion] => 3 ) )



chcę wyświetlić na stronie tylko dane z Array ( [user] czyli " thor"

Pomożecie ?









Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Lektura obowiazkowa
https://www.php.net/manual/en/language.types.array.php
Example #6 Accessing array elements

Przenosze


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post

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: 19.08.2025 - 02:15