PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Spoofchecker::areConfusable - Checks if given strings can be confused | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Spoofchecker::areConfusable

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

Spoofchecker::areConfusableChecks if given strings can be confused

説明

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

Checks whether two given strings can easily be mistaken.

パラメータ

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.

返り値

Returns 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


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Spoofchecker::areConfusable - Checks if given strings can be confused」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Spoofchecker::areConfusable - Checks if given strings can be confused」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: