> Now I also wan´t to know to in which row the word was found.
> Is there a simple way to add some code?

You could explode the file into an array with "\r\n" as the delimiter before
you do the search, then iterate through the resulting array to look for the
word, then the array index you find the word in is the line number.

To save a couple lines of code, use the file() function, it returns the
contents conveniently pre-split into the array.

Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to