title: Overcoming needle haystack confusion in PHP
body: <p>What is the most practical way of overcoming needle haystack confusion in PHP?</p>
  
  <p>Here $needle is the first argument</p>
  
  <pre><code>bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] )
  </code></pre>
  
  <p>Here $needle is the second argument</p>
  
  <pre><code>string strstr ( string $haystack , mixed $needle [, bool $before_needle = false ] )
  </code></pre>