title: Use stristr to match any value in array in a SINGLE if condition without multiple operators
body: <p>I'm pretty capable when coding PHP though I just came across a situation where I wondered if it would be possible to use <code>stristr</code> to match any value in an array inside a <em>SINGLE</em> if condition. I don't need/want a class, a dedicated function or anything super-complex nor am I doing anything complex such as trying to match special characters, I just think I may have missed something useful over at php.net.</p>
  
  <p>The general notion...</p>
  
  <pre><code>if (stristr($search_this,$array_with_values)) {echo 'a match was found';}
  </code></pre>
  
  <p>...or what would amount to (even though this does not work)...</p>
  
  <pre><code>if (stristr($search_this,array('string1','string2'))) {echo 'a match was found';}
  </code></pre>
  
  <p>...I might try to find the strings 'apple','orange','banana' in a regular sentence/string.</p>
  
  <p>I can define the array outside of the if condition.</p>
  
  <p>My main goal is to simply not have numerous if conditions or use multiple operators such as &amp;&amp; or ||.</p>
  
  <p>So I do not want to have multiple || operators like this if possible...</p>
  
  <pre><code>if (
  stristr($search_this_string,'string1') || 
  stristr($search_this_string,'string2') || 
  stristr($search_this_string,'string3')
  ) {echo 'a match was found';}
  </code></pre>
  
  <p>I don't mind having the array before/outside of the if condition though I want to be able to fit everything else inside of a single if condition.</p>