i'm currently using strpos to detect if a certain string appears in another string.
example:
<?
$MY_STRING= 'Find the text in the string';
$MY_FIND= 'text';
if (strpos($MY_STRING, $MY_FIND)!==false) {
//do something
}
?>
I plan on checking the values against a database list of search words.
i need this to be done as fast as possible as the script takes up to 30 minutes to completly execute. (its used in a site archiving tool i'm working on)
any help or examples are greatly appreciated.