The substr function returns part of a string. The first number is the start or offset, and the second number is the length of the substring.
$sentence = "The quick brown fox jumps";
$exists = substr($sentence, 10);
echo $exists;
// "brown fox jumps"
$exists1 = substr($sentence, 4, 5);
echo $exists1;
// "quick"