- var_dump: documentation ( source)
- parse_url: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$url = 'http://some.text.com/path/to/file.html?query=string#anchor';
$r = parse_url($url);
var_dump($r);