PHP Function Reference

PHP ezmlm_hash() Function



The PHP ezmlm_hash() function calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.

This function accepts an email address, for which it calculates an integer hash value. This value is compatible with the EZMLM mailing list manager, and can then be used with the EZMLM database for user management.

Note: This function has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0.

Syntax

ezmlm_hash(addr)

Parameters

addr Required. Specify the email address that is being hashed.

Return Value

Returns the hash value of addr.

Example: ezmlm_hash() example

The example below shows the usage of ezmlm_hash() function.

<?php
$user = "user@example.com";
$hash = ezmlm_hash($user);

echo "The hash value for $user is: $hash.";
?>

❮ PHP Mail Reference