PHP.nl

ezmlm_hash

ezmlm_hash

Calculate the hash value needed by EZMLM

int **ezmlm_hash** string $addr
calculates the hash value needed

when keeping EZMLM mailing lists in a MySQL database. ezmlm_hash

addrThe email address that's being hashed.

The hash value of . addr

Voorbeeld: 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

?>