Given a value, #some_id = x, what's the proper syntax or method to test that the id does not exist in a collection of id's?
For example...
if($some_id not in array(3, 5, 9)){
//do something
}
Given a value, #some_id = x, what's the proper syntax or method to test that the id does not exist in a collection of id's?
For example...
if($some_id not in array(3, 5, 9)){
//do something
}
$theArray = array(3, 5, 9);
if(! in_array($x, $theArray)){
// do something
}