Is it possible to check if an array offset exists or not ?
for example
$url = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
it returns
http://localhost/mediabox/home/box/12
when my header is clicked and I am on home page and returns
http://localhost/mediabox/home/box/12/en
when header is clicked and I am on some other page
How can I check if the url array contains that offset or not ?
Thanks