<?php // your code goes herevar_dump(parse_url("https://e...content-available-to-author-only...e.com/?product=foo#addonTab"));
Standard input is empty
array(5) { ["scheme"]=> string(5) "https" ["host"]=> string(11) "example.com" ["path"]=> string(1) "/" ["query"]=> string(11) "product=foo" ["fragment"]=> string(8) "addonTab" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!