Fwd: loop nested foreach

2004-06-21 Thread mike re-v
Note: forwarded message attached. __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail ---BeginMessage--- the idea here is to step thru a file named file.dat and extract part of each record

nested foreach not looping properly

2004-06-20 Thread mike re-v
hi, The following code iterates unexpectedly. I want to loop thru the file 'file.dat' and pull out every field that begins with 650. The code then pulls the 650 field and builds an array from the sub-fields. The code works but I'm stuck on the first record. In other words if the file I'm reading

nested foreach not looping

2004-06-18 Thread mike re-v
The following code iterates unexpectedly. I want to loop thru the file 'file.dat' and pull out every field that begins with 650. The code then pulls the 650 field and builds an array from the sub-fields. The code works but I'm stuck on the first record. In other words if the file I'm reading has