ezmlm_hash

int ezmlm_hash(string address) 

Calculates an EZMLM list hash value.

Returns:

EZMLM hash value (integer) on success; FALSE on failure

Description:

ezmlm_hash() accepts as its sole argument an email address, for which it calculates an integer hash value. This hash value is compatible with the EZMLM mailing list manager, and allows for integration between a PHP script and an EZMLM mailing list. This value can then be used with the EZMLM database for user management.

Version:

PHP 3 since 3.0.17, PHP 4 since 4.0.2

Example:

Calculate an EZMLM hash for an email address
$address = 'torben@php.net'; 
$hash_key = ezmlm_hash($address); 
echo "The hash value for '$address' is: $hash_key\n"; 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.