From a given array (eg: $_SERVER), I need to get the first and last key and value. I was trying use array_shift to get first value and key but what I get is value. 
Here is the $_SERVER array:  
print_r($_SERVER, true))
And I tried with:
echo array_shift($_SERVER);
 
     
     
     
     
     
    