Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Get Parameters From a URL String in PHP

phpCopy<?php 
$url = "https://testurl.com/test/1234?email=abc@test.com&name=sarah";
$components = parse_url($url);
parse_str($components['query'], $results);
print_r($results); 
?> 
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Get #Parameters #From #URL #String #PHP
ADD COMMENT
Topic
Name
8+8 =