This is an easy one. There seem to be plenty of solutions to determine if a URL contains a specific key or value, but strangely I can't find a solution for determining if URL does or does not have a query at all.
Using PHP, I simply want to check to see if the current URL has a query string. For example: http://abc.com/xyz/?key=value VS. http://abc.com/xyz/.
if (isset($_SERVER['QUERY_STRING'])) {echo 'has string';} else {echo 'no string';}
with no luck. Thanks! – Creekmore