- strpos: documentation ( source)
<?php
$line = "one blah, two blah blah three";
if (strpos($line, "one") !== false &&
strpos($line, "two") !== false &&
strpos($line, "three") !== false) {
echo "matched all three";
}
else
{
echo "didn't match all three";
}