How can we do further comparision or computation on the output of a console application. As I believe it is in ASCII form. I have called the console application in php which gives a huge amount of numeric datas. I want that data to be saved on an array and not in a txt file as the process of reading and writing a file takes time I want it to directly save it in an array. I used exec($command,$result) but I cannot get the result to be saved in proper form. My output is as shown below:
Columns 1 through 7
0.1373 0.0414 0.0541 0.1342 0.5606 0.5293 0.1652
Columns 8 through 14
0.0341 0.0396 0.0633 0.0778 0.0289 0.0654 0.0752
Columns 15 through 21
0.3055 0.4602 0.0631 0.0360 0.0188 0.0497 0.0228...........
I dont want the columns line to be saved in the array and I want each element in column to be saved in different index of array. Eg array[1]=0.1373 and array [2]=0.414.