php check if string contains substring <?php $pos = strpos($string, $substring); if($pos === false) { // substring not found in string } else { // substring found in string } ?> VN:F [1.9.17_1161]Rating: 0 (from 0 votes)