EZMLM_HASH(3) 1 EZMLM_HASH(3)
ezmlm_hash - Calculate the hash value needed by EZMLM
SYNOPSIS
int ezmlm_hash (string $addr)
DESCRIPTION
ezmlm_hash(3) calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.
PARAMETERS
o $addr
- The email address that's being hashed.
RETURN VALUES
The hash value of $addr.
EXAMPLES
Example #1
Calculating the hash and subscribing a user
<?php
$user = "joecool@example.com";
$hash = ezmlm_hash($user);
$query = sprintf("INSERT INTO sample VALUES (%s, '%s')", $hash, $user);
$db->query($query); // using PHPLIB db interface
?>
PHP Documentation Group EZMLM_HASH(3)