Getting Previous page url in php

In this post will explain how to get previous page url using php. In php it have built-in function for getting previous page url.

Example:

<?php
$_SERVER['HTTP_REFERER']; // return the previous page url.
?>

Posted in Php