Skip to content

Instantly share code, notes, and snippets.

View cgeisel's full-sized avatar

Chris Geisel cgeisel

View GitHub Profile
@cgeisel
cgeisel / gist:d85f1175d570fb20534e
Created August 20, 2014 17:55
parse_url example/feature request
// Current behavior:
$server_host = 'example.com';
$parsed_url = parse_url($server_host);
var_dump($parsed_url);
// output:
// array (size=1)
// 'path' => string 'example.com' (length=11)
$server_host = 'http://example.com';