read file text with criteria

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dear all 

i wil read file text (sampe.txt) with php
but i can't how to read line by line with criteria (data)
if find data1 then display all data1
if find data2 then display all data2
if find data3 then displa all data3 

Awaiting for your valuable comments and suggestions. 

thanks
yoga 

my sample data is
sample.txt
data1
vyna,1000
dina,1919
toro,8348
vero,1000
data2
ronaldo,923939
ronny,474990
lampard,393939
tery,100101
data3
Cisse,383838
mikel,393993
alonso,33939

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux