php8.5
Home/ Manual/ intl / spoofchecker/ Spoofchecker::setRestrictionLevel

Spoofchecker::setRestrictionLevel

PHP function Edit on GitHub ✎

(PHP 7 >= 7.3.0, PHP 8)

Set the restriction level

Description

Spoofchecker::setRestrictionLevel(int $level): void

Sets the restriction level of SpoofChecker::isSuspicious.

Parameters

level

The restriction level of SpoofChecker::isSuspicious. One of Spoofchecker::ASCII, Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE, Spoofchecker::HIGHLY_RESTRICTIVE, Spoofchecker::MODERATELY_RESTRICTIVE, Spoofchecker::MINIMALLY_RESTRICTIVE, or Spoofchecker::UNRESTRICTIVE. Defaults to Spoofchecker::HIGHLY_RESTRICTIVE.

Return Values

Void

Source: reference/intl/spoofchecker/setrestrictionlevel.xml · from the official PHP manual (php/doc-en)