ezmlm_hash
(PHP 4 >= 4.0.2, PHP 5)
ezmlm_hash — 計算出 EZMLM 所要使用的 hash 拼雜值
Description
int ezmlm_hash
( string $addr
)
當使用 MySQL 資料庫軟件保存一個 EZMLM 式的郵件列表時 ezmlm_hash() 可以用來計算出所需要的 hash 值。
Example#1 算出 hash 值並加入一個訂閱用戶
$user = "kris@koehntopp.de"; $hash = ezmlm_hash ($user); $query = sprintf ("INSERT INTO sample VALUES (%s, '%s')", $hash, $user); $db->query($query); // using PHPLIB db interface