note 120216 deleted from spoofchecker.issuspicious by sobak
| From: | sobak@php.net | Date: | Wed, 23 Nov 2016 21:17:53 +0000 |
| Subject: | note 120216 deleted from spoofchecker.issuspicious by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207542@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Example of usage:
$checker = new Spoofchecker();
// false: all letters are in ASCII
var_dump($checker->isSuspicious("goog1e.com"));
// true: the first Cyrillic letter is from different set
var_dump($checker->isSuspicious("Ð aypal.com"));
This came from
http://stackoverflow.com/questions/17458876/php-spoofchecker-class