The strpos function finds the position of the first occurrence of a string in a string, starting at 0 It returns false if the string is not found.

    
    $sentence = "The quick brown fox jumps over the lazy dog";
    $exists = strpos($sentence, "quick");
    echo $exists;
    // 4