title: how to scroll through array in PHP?
body: <p>I tried to insert file into array and get a specific result from it. </p>
  
  <p>the <code>array_search()</code> doesn't seem to work.</p>
  
  <p>it looks something like this:</p>
  
  <pre><code>  $filepath = "/etc/log/20151026.log";
    $logs = file($filepath); 
     $lo = array($logs);  
     $search = array_search("username ",$lo);  
     echo $search;
  </code></pre>
  
  <p>If I echo only the array <code>$lo</code> I get the array displayed, yet I can't search through it.</p>
  
  <p>I also tried to extract the array by pieces but a search would be more convenient for the purpose I need. </p>