How to get the current url in php

$_SERVER , print this variable and get the details regarding url.

$_SERVER[‘REQUEST_URI’] will provide the current page url