Extract data from csv file with different permutation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jackgoddy123
Forum Newbie
Posts: 14
Joined: Sat Jan 11, 2014 8:10 am

Extract data from csv file with different permutation

Post by jackgoddy123 »

Hello,

I have a issue to extract csv data with different permutation.
Below are the conditions:

TO extract csv file,1 row as one sentence
To extract csv file data as one row data which has four coulmns combination as one sentence.
To extract csv file data as first row column combining with 2nd column of 2nd row(Permutation).
eg: I have 4 row with 4 coulmns. After csv data extraction, each row should should form a sentence by combining its 4 column fields. But may be with different permution each rows first coulmn should combine with rest of the 3 rows 2nd columns.
A B C D
E F G H
I J K L

So the result should be as: AFCD, AJCD, ABCD and son on.

Extracting csv data code is ready all I want to add permutation condition.
Any help is appreciated.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Extract data from csv file with different permutation

Post by Christopher »

jackgoddy123 wrote:Extracting csv data code is ready all I want to add permutation condition.
What do you mean by "permutation condition"?
(#10850)
Post Reply