sarab99 Posted June 25, 2008 Share Posted June 25, 2008 Hi I have print a text file printed by textarea . I would like to have a button to read a specific line that contain a specific word. for example: echo line form file where line contain "sarab" in above example I print the line content because its has word "sarab" any help please thanks Link to comment https://forums.phpfreaks.com/topic/111894-search-help/ Share on other sites More sharing options...
trq Posted June 25, 2008 Share Posted June 25, 2008 Take a look at file() and strpos(). Link to comment https://forums.phpfreaks.com/topic/111894-search-help/#findComment-574285 Share on other sites More sharing options...
sarab99 Posted June 25, 2008 Author Share Posted June 25, 2008 can you give me an example ? thanks Link to comment https://forums.phpfreaks.com/topic/111894-search-help/#findComment-574479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.