Getting client ip address in PHP

$_SERVER is an array containing information such asĀ  headers, paths, and script locations.The entries in this array are created by the web server