title: In PHP, is there a function like stristr, but for arrays?
body: <p>Basically, I have an array of strings to search for. If it were only one string, <code>stristr</code> would work perfectly. However, since it's an array, the only thing I can think of is to just run a foreach loop and <code>stristr</code> the string from each iteration.</p>
  
  <p>Surely there's a better way to do this, I just don't know it.</p>
  
  <h2>Edit</h2>
  
  <p>For example, say I have this array:</p>
  
  <p><code>$array = array("string1", "foo", "bar", doowop");</code></p>
  
  <p>and this string:</p>
  
  <p><code>$string = "aw dang man lets go to that bar";</code></p>
  
  <p>I need to figure out if <code>$string</code> contains one of the strings from the array.</p>