(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 數(shù)據(jù)庫中保存 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
?>