How do I set time limit for loop?
<p>I do have a loop, say:</p>

<pre><code>$lines = file('file.txt');    

foreach ($lines as $line) { 

  // some function

}
</code></pre>

<p>Some times this take more time to complete one loop if data is not available. So how do I set a time limit to each loop so if any info isn't available it will move to next?</p>
