SyntaxFix
Write A Post
Hire A Developer
Questions
You can also get a query string value as:
$uri = $_SERVER["REQUEST_URI"]; //it will print full url $uriArray = explode('/', $uri); //convert string into array with explode $id = $uriArray[1]; //Print first array value