電子メールアドレスのハッシュ値を計算します:
<?php
$user = "someone@example.com";
$hash = ezmlm_hash($user);
echo "The hash value for $user is: $hash.";
?>
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.
ezmlm_hash(address);
パラメータ | 説明 |
---|---|
address | 必須。email address being hashedを指定する |
返り値: | Returns the hash value of the address parameter, or FALSE on failure |
---|---|
PHP バージョン: | 4.0.2+ |