hash_init()
function hash_init(string $algo, int $flags = 0, string $key = ''): mixed
Initialize an incremental hashing context.
Parameters:
$algo(string)$flags(int), default0, optional$key(string), default'', optional
Returns: mixed
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how hash_init is implemented in the compiler, see the internals page.