How can we say that $_SERVER is an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we say that $_SERVER is an array?

24th Feb 2017, 8:08 PM
Aastha Rawat
Aastha Rawat - avatar
3 Answers
+ 1
Car dump or print-r
26th Feb 2017, 3:41 AM
Animesh
Animesh - avatar
+ 1
vardump
26th Feb 2017, 3:41 AM
Animesh
Animesh - avatar
0
try this print_r($_SERVER); you will get all variables of array inside of it, $_SERVER : containing information such as headers, paths, and script locations or try : echo $_SERVER[SERVER_ADDR'] : You will get the IP address of the server many and many for more information you can visit this page and learn more : http://php.net/manual/en/reserved.variables.server.php
24th Feb 2017, 8:32 PM
ahmad stout
ahmad stout - avatar