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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -