NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hello,
I am trying to check a string for any words at which point if there is a word found, I want PHP to run a MySQL query. Below is a pseudo example of what I want to happen.
$words = ("word","word1","word2");
$string = "hello word";
if($string contains any $words)
{
echo "True";
}else
{
echo "No word";
}
It would be a huge help if someone has a solution.
Cheers.
I am trying to check a string for any words at which point if there is a word found, I want PHP to run a MySQL query. Below is a pseudo example of what I want to happen.
$words = ("word","word1","word2");
$string = "hello word";
if($string contains any $words)
{
echo "True";
}else
{
echo "No word";
}
It would be a huge help if someone has a solution.
Cheers.