Hello Solo Leraners, Can anyone help me with elaborate about the $server variable host name method in php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello Solo Leraners, Can anyone help me with elaborate about the $server variable host name method in php?

Thanks for the helping

24th Jul 2021, 2:09 PM
Siddharth K
Siddharth K - avatar
2 Answers
+ 2
$_SERVER is a super global array that is visible in all files .php on the server. In fact, this is the same associative array with its own keys and values. To view the list of keys, you can enter: print_r($_SERVER);
25th Jul 2021, 4:59 PM
Роман
Роман - avatar
0
Thanks bro
25th Jul 2021, 5:08 PM
Siddharth K
Siddharth K - avatar