Spoofchecker::isSuspicious

(PHP >= 5.4.0, PECL intl >= 2.0.0)

Spoofchecker::isSuspiciousChecks if a given text contains any suspicious characters

설명

public bool Spoofchecker::isSuspicious ( string $text [, string &$error ] )

Warning

이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.

인수

text

error

반환값

add a note add a note

User Contributed Notes 1 note

up
0
Anonymous
7 years ago
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
To Top