No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

Spoofchecker::areConfusable

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

Spoofchecker::areConfusableChecks if given strings can be confused

Description

public Spoofchecker::areConfusable ( string $str1 , string $str2 [, string &$error ] ) : bool

Checks whether two given strings can easily be mistaken.

PHP: Spoofchecker::areConfusable - Manual Home of Manuel PHP  Contents Haut

Parameters

str1

First string to check.

str2

Second string to check.

error

This variable is set by-reference to string containing an error, if there were any.

PHP: Spoofchecker::areConfusable - Manual Home of Manuel PHP  Contents Haut

Return Values

Returns TRUE if two given strings can be confused, FALSE otherwise.

PHP: Spoofchecker::areConfusable - Manual Home of Manuel PHP  Contents Haut

Examples

Example #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

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph