name of url parameter php script checks for code example
Example 1: php check if parameter exists
if(isset($_GET['id']))
{
$slide = $_GET['id'] // Getting parameter value inside PHP variable
}
Example 2: php get url path name
parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH );