method isSame documentation in bbn\X

Checks if two files are the same.

function(string $file1, string $file2, $strict = false) { if (!is_file($file1) || !is_file($file2)) { throw new Exception("Boo! One of the files given to the X::is_same function doesn't exist"); } $same = filesize($file1) === filesize($file2); if (!$strict || !$same) { return $same; } return filemtime($file1) === filemtime($file2); }

Checks if two files are the same. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.