<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 12:31 PM, <span dir="ltr"><<a href="mailto:arocker@vex.net">arocker@vex.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">><br>
> OK, let me give you the specific example...<br>
> The array contains all of the lines of a file...<br>
> The foreach is used to loop over then, and 'take action' upon them.<br>
> But when I'm done I want all the empty lines stripped from the array<br>
> ('just<br>
> because!')<br>
><br>
</div>Does the process require the presence of the entire file in memory before<br>
the loop, and the shuffled-down file afterwards? Do you output the<br>
remaining lines?<br></blockquote><div><br>No, but I need to output the 'remaining' lines.<br><br>Also I forgot to mention, the reason the original data was in an array, was because<br>it came from one of two sources... slurping a file, or a 'received' string.<br>
So I thought I'd first normalize either dataset into the array I would then traverse.<br></div></div><br>