Let's say there is such a link
site.ru/page?url=1&obj=2&hr=3&blablabla=4
And there is an array of this kind:
$arr = array('url', 'obj'); How to check all variables from a GET request for existence? and if there is no variable in the array, output 404.
In this example, it should produce the 404th. The variables hr and blablabla do not exist.
if(!isset($_GET['url'])) redirect 404- Vanya Avchyan$arr = array('url' => 'url', 'obj' => 'index'). Then you can use filters to check if theurlandobjhave adequate values. - user239133