hay there
How can i check for say 2 or more words in a string…
Now I know this checks for 2 words on a “OR” basis
[php]
if(preg_match("/$findthis|$this/i", $text_to_search))
{
//do something
}
[/php]
So this ill check to see if the [php]$text_to_search[/php] contains either[php] $findthis [/php] or [php]$this[/php]
but i need it to check with the “and” operator - so for example…
search [php]$text_to_search[/php] for [php]$findthis[/php] and $this
how can i do this?
many thanks