md5_file

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Calculates the md5 hash of a given file
<?php md5_file(string $filename, bool $binary = false): string|false
<?php     public function hasSameHash($firstFile, $secondFile)

    {

        $hash = @md5_file($firstFile);



        return $hash && hash_equals($hash, (string) @md5_file($secondFile));

    }
<?php     {

        $hash = @md5_file($firstFile);



        return $hash && hash_equals($hash, (string) @md5_file($secondFile));

    }
<?php             return null;

        }



        return md5_file($path) ?: null;

    }
<?php                             return false;

                        }

                    } elseif (is_file($dir.'/'.$file) && filesize($dir.'/'.$file)) {

                        $array[$dir][$file] = md5_file($dir.'/'.$file);

                    }

                }

            }