php - compare variable with $_SERVER['REQUEST_URI'] -
i have got variable $page
. variable holds value of page on am. need compare expression:
if ($_server['request_uri'] === '/index.php?page='.$page)
but not working
seems more simple do:
if ($_get['page'] == $page)
this continue work if have more page in query string.
Comments
Post a Comment