Function __global->hash_file
Definitions
sources_custom/phpstub.php
- Generate a hash value using the contents of a given file.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$algo | string | required parameter | N/A | N/A | Name of algorithm to use |
$filename | string | required parameter | N/A | N/A | File or URL to hash |
$binary | boolean | False | N/A | N/A | Whether to output raw binary data (false: output lowercase hex) |
$options | array | [] | N/A | N/A | Array of options for the hashing algorithm chosen |
Return
- The hash (false: error)
- Type: ~string
- Set: N/A
- Range: N/A