Spoofchecker::areConfusable
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Spoofchecker::areConfusable
Референца за `spoofchecker.areconfusable.php` со подобрена типографија и навигација.
Spoofchecker::areConfusable
(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)
Spoofchecker::areConfusable — Checks if given strings can be confused
= NULL
Checks whether two given strings can easily be mistaken.
Параметри
string1-
First string to check.
string2-
Second string to check.
errorCode-
This variable is set by-reference to int containing an error, if there was any.
Вратени вредности
Патеката до PHP скриптата што треба да се провери. true if two given strings can be confused, false otherwise.
Примери
Пример #1 Spoofchecker::areConfusable() example
<?php
$checker = new Spoofchecker();
$checker->areConfusable('google.com', 'goog1e.com'); // true
// Lower l can be confused with digit one
$checker->areConfusable('google.com', 'g00g1e.com'); // false
// Zero (0) cannot be easily confused with "o" letter