title: How do i search an array in php and return true if it finds one of my variable?
body: <pre><code>if (array_search($soca, $user_socs))
  </code></pre>
  <p>I know that this will search the array by inputing a variable and an array but i was wondering if it is possible to make it return true, because since it doesn't return true, my if statement is not being carried out.</p>
  <h3>References</h3>
  <ul>
  <li><a href="http://php.net/manual/en/function.array-search.php" rel="nofollow noreferrer"><code>array_search</code> documentation</a></li>
  </ul>