hash_hmac()
function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string
Generates a keyed hash value using the HMAC method.
Parameters:
$algo(string)$data(string)$key(string)$binary(bool), defaultfalse, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/hash_hmac.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how hash_hmac is implemented in the compiler, see the internals page.