#Program to check if string "check" comes at the begining of the string $str="checking1234" if ( $str.startswith("check") ) { echo "String $str starts with check" }