hi
I wanna code which is use to display the following only ,Ref doc , Reference ,the datas are in text file like
Run no. Ref. doc. Reference Pers.no.
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498612 1250047780/000 20012260
1000003074 1000498612 1250047780/000 20012260
I need to display Ref doc , Reference from above code by php ,please let me know the solution .....
File Read
Moderator: General Moderators
I got but i need 2nd and 3rd column of the specified text file please let me know the solution for the same
<?php
$lines = file('test.txt');
foreach ($lines as $line_num => $line) {
echo $line."</br>\n";
}
?>
Test.text
Run no. Ref. doc. Reference Pers.no.
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498612 1250047780/000 20012260
1000003074 1000498612 1250047780/000 20012260
<?php
$lines = file('test.txt');
foreach ($lines as $line_num => $line) {
echo $line."</br>\n";
}
?>
Test.text
Run no. Ref. doc. Reference Pers.no.
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498611 1250047681/000 20012163
1000003074 1000498612 1250047780/000 20012260
1000003074 1000498612 1250047780/000 20012260