From a7e1318ee8569ff4eb2d807603c38c67ff2e39d3 Mon Sep 17 00:00:00 2001 From: Maciej Sobaczewski Date: Wed, 23 Nov 2016 21:17:40 +0000 Subject: [PATCH] Document some intl Spoofchecker methods It also integrates user note 120216 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341114 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/intl/spoofchecker/areconfusable.xml | 41 +++++++++++++------ reference/intl/spoofchecker/construct.xml | 9 +--- reference/intl/spoofchecker/issuspicious.xml | 30 ++++++++++---- 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/reference/intl/spoofchecker/areconfusable.xml b/reference/intl/spoofchecker/areconfusable.xml index ff267bc24f..fcb139d848 100644 --- a/reference/intl/spoofchecker/areconfusable.xml +++ b/reference/intl/spoofchecker/areconfusable.xml @@ -4,41 +4,38 @@ Spoofchecker::areConfusable - Checks if a given text contains any confusable characters + Checks if given strings can be confused &reftitle.description; public boolSpoofchecker::areConfusable - strings1 - strings2 + stringstring1 + stringstring2 stringerror - + Checks whether two given strings can easily be mistaken. - - &warn.undocumented.func; - &reftitle.parameters; - s1 + string1 - + First string to check. - s2 + string2 - + Second string to check. @@ -46,7 +43,8 @@ error - + This variable is set by-reference to string containing an error, if there + were any. @@ -56,11 +54,28 @@ &reftitle.returnvalues; - + Returns &true; if two given strings can be confused, &false; otherwise. + + &reftitle.examples; + + + <function>Spoofchecker::areConfusable</function> example + +areConfusable('google.com', 'goog1e.com'); // true: lower l can be confused with digit one +$checker->areConfusable('google.com', 'g00g1e.com'); // false: zero digit cannot be confused with "o" letter +?> +]]> + + + +