(PHP 4 >= 4.0.2, PHP 5, PHP 7)
ezmlm_hash — 计算 EZMLM 所需的散列值
This function has been DEPRECATED as of PHP 7.4.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.
$addr
) : intezmlm_hash() 计算用于在 MySQL 数据库中保存 EZMLM 邮件列表的散列值。
addr
要进行散列算法的电子邮件地址。
addr
的散列值。
示例 #1 计算散列值并订阅一个用户
<?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
?>