I have a PHP variable that its value = keywords the code searches for
$searchfor = 'error1';
Each time I need to add a new keyword to searchfor, i repeat the function. Can't I for example set
$searchfor = 'error1' and 'error2' and 'error3';
but don't stop the code if one of them didn't exist.
See Question&Answers more detail:os