TwistPHP Documentation

hash

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

hashBasic alias function of PHP's hash_file, hash a file on the local server

Parameters

Name Type Description
$strFilePathstringn/a
[$strHashAlgorithm = 'md5']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strFilePath 'foo';
$strHashAlgorithm 'md5';

//Call the function hash with the example vars
Twist::File() -> hash($strFilePath$strHashAlgorithm);