for example I might:
$exclude_values = ['/','.'];
$check_string = 'asdf/';
$return = 'VALID';
foreach($exclude_values as $value)
{
if(strpos($value,$check_string) != FALSE)
{
$return = 'INVALID';
}
}
return $return;
Is there a better way to do this? I've seen examples of single checks on stack just not multiple values