php find line number for a particular keyword

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-06-07T13:48:17Z Indexed on 2010/06/07 13:52 UTC
Read the original article Hit count: 161

Filed under:

Hello, say I have a paragraph of text, with some new lines/line breaks. I would like to find the occurance of a certain keyword, and return the line numbers of those keywords. How do I do that? Thanks!

© Stack Overflow or respective owner

Related posts about php