Posted by JackM on 05/21/05 05:21
I'm having a brain freeze on this. I have a script where I am reading
the contents of a file into an array. I have that up and working with no
problem. Then I'm exploding the array using
while ($line = fgets($fd, 4096))
{
$arrayData = explode("-", trim($line));
}
Works fine. But what I want to do now is evaluate arrayData[2] to see if
it contains the integers "00" (that's zero zero) and if it does, I want
it to skip that entry. I know I need to set it up with
if arrayData[2] == "00" {
But I'm drawing a blank on how to get it to skip this entire line in the
final results. There may be multiple instances of this happening in each
file and I want to skip them all. Can anyone point me in the right
direction for the coding to accomplish this? Thanks.
Navigation:
[Reply to this message]
|