$server_url_path = array(
"id" => array("qwester","client_number_id", "client_settings"),
"contact");
$url_path5 = "id";
$url_path6 = "client_number_id";
if (in_array($url_path5, $server_url_path)) {
echo "ID yes";
}
if (in_array("contact", $server_url_path)) {
echo "Con yes";
}
if (in_array($url_path6, $server_url_path["id"])) {
echo "ID array yes";
}
if (isset ($server_url_path[$url_path5])){
echo "ID yes";
}
if (isset ($server_url_path['id'])){
echo "ID yes";
}
$server_url_path = array(
"id" => array(
"qwester",
"client_number_id",
"client_settings"
),
"contact"
);
foreach ($server_url_path as $val) {
if (in_array($url_path5, $val)) {
echo "got some!";
}
}