Loading...
Home » » PHP to check if a URL contains a query string

PHP to check if a URL contains a query string

Posted by TeknoBlog on Wednesday, 8 February 2017

http://stackoverflow.com/questions/7864237/php-to-check-if-a-url-contains-a-query-string


For any URL as a string:
if (parse_url($url, PHP_URL_QUERY))
If it's for the URL of the current request, simply:
if ($_GET)

Thanks for reading & sharing TeknoBlog

Previous
« Prev Post

0 comments:

Post a Comment

iklan