SHA1
Calculate the sha1 hash of a string
SYNTAX
sha1 ( string $str [, bool $raw_output = FALSE ] ) : string
PARAMETERS
str
The input string.
raw_output
If the optional raw_output is set to TRUE, then the sha1 digest is instead returned in raw binary format with a length of 20, otherwise the returned value is a 40-character hexadecimal number.
RETURN
Returns the sha1 hash as a string.
EXAMPLES
STR
f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0
RAW_OUTPUT
f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0