[ create a new paste ] login | about

Link: http://codepad.org/5HDgMW5i    [ raw code | output | fork ]

PHP, pasted on Sep 16:
1
2
3
4
5
6
7
8
<?php

var_dump(filter_var('name@domain.com', FILTER_VALIDATE_EMAIL));
var_dump(filter_var('name2@domain.com', FILTER_VALIDATE_EMAIL));
var_dump(filter_var('inv@lid', FILTER_VALIDATE_EMAIL));


?>


Output:
1
2
3
string(15) "name@domain.com"
string(16) "name2@domain.com"
bool(false)


Create a new paste based on this one


Comments: