#Program to check if string "ing" exists in the string $str="checking1234" if ( $str.contains("ing") ) { echo "String $str contains - [ing]" }