PHP - Manual: Spoofchecker::setRestrictionLevel
2025-10-24
(PHP 7 >= 7.3.0, PHP 8)
Spoofchecker::setRestrictionLevel — Set the restriction level
Sets the restriction level of SpoofChecker::isSuspicious().
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.
没有返回值。
官方地址:https://www.php.net/manual/en/spoofchecker.setrestrictionlevel.php