Hey all,
I have a doubt regarding the structure of my loop.
I have a dbf file which has lot of records and fields. I open the dbf file and set the descriptor with this line.
$wdb->set_record($i,$data[1],$data[2]) - from the .dbf file
File Sample.dbf has structure like this
X Y
1 r
1 3
1 6
5 2
5 3
2 8
2 1
etc..there are millions of records like this.
I need to split the X data into chunks and apply a function for each chunk separately. For eg) I need to apply a function on all values of Y corresponding to 1(X), then 5, then 2 and so on.. Could you please help me with this?
Sorry for posting this again? I did not convey it properly last time.
I have a doubt regarding the structure of my loop.
I have a dbf file which has lot of records and fields. I open the dbf file and set the descriptor with this line.
$wdb->set_record($i,$data[1],$data[2]) - from the .dbf file
File Sample.dbf has structure like this
X Y
1 r
1 3
1 6
5 2
5 3
2 8
2 1
etc..there are millions of records like this.
I need to split the X data into chunks and apply a function for each chunk separately. For eg) I need to apply a function on all values of Y corresponding to 1(X), then 5, then 2 and so on.. Could you please help me with this?
Sorry for posting this again? I did not convey it properly last time.