<?php $korean = "한" . "국" . "말"; $x = new Spoofchecker(); echo "Is suspcious, en_US\n"; $x->setAllowedLocales('en_US'); var_dump($x->isSuspicious($korean)); echo "Is suspcious, ko_KR\n"; $x->setAllowedLocales('en_US, ko_KR'); var_dump($x->isSuspicious($korean));
<?php $url = "http://www.paypаl.com"; $x = new Spoofchecker(); echo "paypal with Cyrillic spoof characters\n"; var_dump($x->isSuspicious($url)); echo "certain all-uppercase Latin sequences can be spoof of Greek\n"; var_dump($x->isSuspicious("NAPKIN PEZ")); var_dump($x->isSuspicious("napkin pez"));