定義和用法FILTER_SANITIZE_EMAIL 過濾器刪除字串中所有非法的e-mail 字元。此過濾器允許所有的字母、數字以及$-_.+!*'{}|^~[]`#%/?@&= Name: "email" ID-number: 517實例<?php$var="some(one)@exa\mple.com";var_dump(filter_var($var, FILTER_SANITIZE_EMAIL));?>程式碼的輸出如下所示: string(19) "someone@example.com"