Are there any specific PHP functions or methods for parsing URLs with custom parameters?

When parsing URLs with custom parameters in PHP, you can use the `parse_url()` function to extract the different components of the URL (such as host, path, query parameters, etc.). To parse custom parameters specifically, you can use the `parse_str()` function to parse the query string into an associative array.

$url = "http://example.com/page?param1=value1&param2=value2";
$parsed_url = parse_url($url);
$query_params = [];
if(isset($parsed_url['query'])){
    parse_str($parsed_url['query'], $query_params);
}

// Access custom parameters
echo $query_params['param1']; // Output: value1
echo $query_params['param2']; // Output: value2