Drupal

Alternative for PHP function parse_url()

The recommended function UrlHelper::parse() is not very helpful in this use-case. I could not find a drop-in replacement for this function and did not want to write my own.