$string = "The quick brown fox jumps over the lazy dog"; if (strpos($string, "The") === 0) { echo "The string starts with 'The'"; } else { echo "The string does not start with 'The'"; }
$string = "The quick brown fox jumps over the lazy dog"; if (strpos($string, "The") === 0) { echo "The string starts with 'The'"; } else { echo "The string does not start with 'The'"; }