bgsomers Posted May 7, 2007 Share Posted May 7, 2007 I have a routine that scans guest-book entries for objectionable words or terms, using the function strpos: if strpos($entry, 'word1') == TRUE or strpos($entry, 'word2') == TRUE ... I want to create "strposplus", which will use strpos in this way, but when a word is found, will write that word to a file, along with the entry itself. if strposplus($entry, 'word1') == TRUE or strposplus($entry, 'word2') == TRUE ... Does the argument 'word1' get a name by which it can be referenced? Or must I assign it to a named variable before my call to strposplus? Bruce Quote Link to comment Share on other sites More sharing options...
trq Posted May 7, 2007 Share Posted May 7, 2007 You would need to assign it yourself. 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.