PHP FILTER_SANITIZE_EMAIL Filter
Complete PHP Filter Reference
Definition and Usage
The FILTER_SANITIZE_EMAIL filter removes all illegal e-mail characters from a
string.
This filter allows all letters, digits and $-_.+!*'{}|^~[]`#%/?@&=
- Name: "email"
- ID-number: 517
Example
<?php
$var="some(one)@exa\\mple.com";
var_dump(filter_var($var, FILTER_SANITIZE_EMAIL));
?>
|
The output of the code will be:
|
string(19) "someone@example.com"
|
Complete PHP Filter Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|