title: Check if string is equal to one of many given strings
body: <p>I want to check whether string is one of the given strings. It would look something like this.</p>
  
  <pre><code>$string 'test';
  
  
  // if given string is 'test' function will return false.
  function checkIfIsSubstring($string)
  {
  if (strcmp($string, 'test2') )
     return true;
  if (strcmp($string, 'test3') )
     return true;
  if (strcmp($string, 'test4') )
     return true;
  return false;
  } 
  </code></pre>
  
  <p>is there php function what would do same thing, without me creating a new function?</p>