PHP obtiene ID de URL
$id = (int)$_GET['id'];
RapTToR
$id = (int)$_GET['id'];
$path = parse_url($url, PHP_URL_PATH);
$pathFragments = explode('/', $path);
$end = end($pathFragments);