← All built-ins / sha1()
sha1()
sha1(...$args): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | input data |
Return value
40-character hex SHA-1 digest (legacy — prefer sha256).
Example
echo sha1("holy");REPLACE_SHA1_HOLY
| Name | Type | Description |
|---|---|---|
| $s | string | input data |
40-character hex SHA-1 digest (legacy — prefer sha256).
echo sha1("holy");REPLACE_SHA1_HOLY