<?php
$str = "http://www.***.com/xxx.php?a=123&b=456&c=789";
$url = parse_url($str);
parse_str($url['query'],$parameters);
print_r($parameters);
?>
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme