title: PHP - Search in specific array value
body: <p>I want to Search in Array value by in_array Function and For loop. My code:</p>
  
  <pre><code>$input = "a";
  $arrays = array("cdf","abs","tgf");
  
  $counter = count($arrays);
  
  for ($i=0; $i&lt;$counter; $i++){
  
      if(in_array($input,$arrays) !== true){
          echo "Found &lt;br&gt;";
      } else {
          echo "Not Found";
      }
  
  }
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>Not Found
  Found
  Not Found
  </code></pre>
  
  <p>But, <code>if(in_array($input,$arrays[$i]) !== true)</code> not working.</p>