title: Looping through a large array
body: <p>I'm creating application that will create a very very large array, and will search them.
  I just want to know if there is a good PHP array search algorithm to do that task? </p>
  
  <p>Example: I have an array that contains over 2M keys and values, what is the best way to search?</p>
  
  <p><strong>EDIT</strong>
  I've Created a flatfile dbms that based on arrays so i want to find the best way to search it</p>