if( strpos( $string, $substring ) === false ) { // substring not found in string // code } else { // substring found in string // code }
if( strpos( $string, $substring ) === false ) { // substring not found in string // code } else { // substring found in string // code }