1
vote
0answers
65 views

How to increase concision and performance in a function to retrieve sentences where keywords match?

I'm building a text search system for a web application in PHP. I wrote this function that gets the sentences of the text which contains the keywords used by the user and also highlight them (well, ...
1
vote
0answers
38 views

String Matching

I recently came across a lecture on DFA. I tried to use it to determine whether a given 'search string' is found in the 'input string'. Please tell me if there is a better way ...