Answers for "php get id from url"

PHP
0

php get id from url

$id = (int)$_GET['id'];
Posted by: Guest on March-31-2021
0

get id from current url for php

$path = parse_url($url, PHP_URL_PATH);
$pathFragments = explode('/', $path);
$end = end($pathFragments);
Posted by: Guest on May-21-2021

Browse Popular Code Answers by Language