I will re-explain the whole situation as it got confused. And keep in mind i do not know much about coding. I have an array like that:
<?php
$mytestarray = array(
'test1'=>'aaa',
'test2'=>'aaa',
'test3'=>'ccc'
);
Now what i need is to check if the array keys exist in the current url of the webpage. If they exist i will do something if not the rest of the code will go on loading (this code will place in the header of my website). So there are many codes to run if this statement returns false.
So in the array example above
http://localhost/test1xxx.php
should return True as the url contains test1 which is the first array key
http://localhost/test2asdasdasdas.php
should also return True.
That is it. I do not need anything more or less or different. As the array values will be used somewhere else, the script should check if array keys exists or not in the url