[ create a new paste ] login | about

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

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:
posted by Oksunka on Jul 5
<?php
$i=2;
$simvol=32;
$n=0;
while($simvol<256){
echo ($i++\t);
while ($n++!=15) {
echo chr($simvol++);
}
echo "\n";
$n=0;
}

reply
posted by Oksunka on Jul 5
<?php
$i=2;
$simvol=32;
$n=0;
while($simvol<256){
echo ($i++\t);
while ($n++!=15) {
echo chr($simvol++);
}
echo "\n";
$n=0;
}
?>
reply