ivytony Posted March 5, 2008 Share Posted March 5, 2008 say, there is a paragraph with a about 300 words in total. I want to scan this paragraph for some exact words, e.g. name. The keywords shall be stored in an array named name_array and the value in it are the keywords like name1, name2, name3, etc. I am wondering if there is such a function for selecting keywords. Thanks Quote Link to comment Share on other sites More sharing options...
bpops Posted March 5, 2008 Share Posted March 5, 2008 I'm assuming you want to do something to these words, then you will use str_replace: http://us.php.net/manual/en/function.str-replace.php Quote Link to comment Share on other sites More sharing options...
Rohan Shenoy Posted March 5, 2008 Share Posted March 5, 2008 Ig you just want to find whether a given word is found in a paragraph, you may also use strpos(). But I don't get the what you said by that array. Quote Link to comment Share on other sites More sharing options...
ivytony Posted March 5, 2008 Author Share Posted March 5, 2008 that array's value will be stored in mysql. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.