phpCopy<?php $string = "Mr. Peter"; if(substr($string, 0, 3) === "Mr."){ echo "The string starts with the desired substring."; }else echo "The string does not start with the desired substring."; ?>