Tempat Mencatat
Wednesday, February 8, 2017
PHP to check if a URL contains a query string
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
))
http://php.net/parse_url
If it's for the URL of the
current request
, simply:
if
(
$_GET
)
Newer Post
Older Post
Home