The sha1_file function sets the sha1 hash a text file.

    
    $christian = "Happy Christmas";
    $jewish = "Happy Hanukkah";

    $textSimilar = similar_text($christian, $jewish);

    echo $textSimilar;
    // 7