title: strstr in array
body: <p>I'm have code that needs to check if a particular string that will vary in length each time is within a string in an array that will also vary in length each time.</p>
  
  <p>I can get it to check if text is in a particular string using 'strstr' and I can check if a string is in and array using 'in_array' but I can't seem to connect the two.</p>
  
  <p>To put it as simple as I can:</p>
  
  <pre><code>$array = array([0]=&gt;'12345',[1]=&gt;'67890');
  if(in_array(strstr(3,$array)))
  = true
  or
  = 0 (being the key)
  </code></pre>
  
  <p>(obviously this wouldn't work but hopefully it helps show what I'm trying to do)</p>
  
  <p>I have considered breaking up the array into parts and comparing each one individually that way but I'm concerned that with the size of the array and the number of times it will have to completed this operation in one run that it could cause speed issues.  Also, if there is a cleaner way anyone can think of it would be much better all round.</p>