PHP Velho Oeste 2024

Spoofchecker::isSuspicious

(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)

Spoofchecker::isSuspiciousComprobar si un texto dad contiene caracteres sospechosos

Descripción

public Spoofchecker::isSuspicious(string $text, string &$error = ?): bool

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

text

error

Valores devueltos

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