What is the \"less code needed\" way to get parameters from a URL query string which is formatted like the following?
www.mysite.com/category/subcateg
The PHP way to do it is using the function parse_url, which parses a URL and return its components. Including the query string.
Example:
$url = 'www.mysite.com/category/subcategory?myqueryhash'; echo parse_url($url, PHP_URL_QUERY); # output "myqueryhash"
Full documentation here