下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
INPUT_POST
(int)
INPUT_GET
(int)
INPUT_ENV
(int)
INPUT_SERVER
(int)
INPUT_SESSION
(int)
INPUT_REQUEST
(int)
FILTER_FLAG_NONE
(int)
FILTER_REQUIRE_SCALAR
(int)
FILTER_REQUIRE_ARRAY
(int)
FILTER_FORCE_ARRAY
(int)
FILTER_NULL_ON_FAILURE
(int)
FILTER_VALIDATE_INT
(int)
FILTER_VALIDATE_BOOL
(int)
FILTER_VALIDATE_BOOLEAN
的别名。
FILTER_VALIDATE_BOOLEAN
(int)
FILTER_VALIDATE_FLOAT
(int)
FILTER_VALIDATE_REGEXP
(int)
FILTER_VALIDATE_URL
(int)
FILTER_VALIDATE_DOMAIN
(int)
FILTER_VALIDATE_EMAIL
(int)
FILTER_VALIDATE_IP
(int)
FILTER_VALIDATE_MAC
(int)
FILTER_DEFAULT
(int)
FILTER_UNSAFE_RAW
。
FILTER_UNSAFE_RAW
(int)
FILTER_SANITIZE_STRING
(int)
FILTER_SANITIZE_STRIPPED
(int)
FILTER_SANITIZE_ENCODED
(int)
FILTER_SANITIZE_SPECIAL_CHARS
(int)
FILTER_SANITIZE_EMAIL
(int)
FILTER_SANITIZE_URL
(int)
FILTER_SANITIZE_NUMBER_INT
(int)
FILTER_SANITIZE_NUMBER_FLOAT
(int)
FILTER_SANITIZE_MAGIC_QUOTES
(int)
FILTER_SANITIZE_ADD_SLASHES
替代。)
FILTER_SANITIZE_ADD_SLASHES
(int)
FILTER_CALLBACK
(int)
FILTER_FLAG_ALLOW_OCTAL
(int)
0[0-7]+
)。
FILTER_FLAG_ALLOW_HEX
(int)
0x[0-9a-fA-F]+
)
FILTER_FLAG_STRIP_LOW
(int)
FILTER_FLAG_STRIP_HIGH
(int)
FILTER_FLAG_STRIP_BACKTICK
(int)
FILTER_FLAG_ENCODE_LOW
(int)
FILTER_FLAG_ENCODE_HIGH
(int)
FILTER_FLAG_ENCODE_AMP
(int)
&
编码。
FILTER_FLAG_NO_ENCODE_QUOTES
(int)
'
和 "
编码。
FILTER_FLAG_EMPTY_STRING_NULL
(int)
FILTER_FLAG_ALLOW_FRACTION
(int)
FILTER_FLAG_ALLOW_THOUSAND
(int)
,
)。
FILTER_FLAG_ALLOW_SCIENTIFIC
(int)
e
、E
)。
FILTER_FLAG_PATH_REQUIRED
(int)
FILTER_FLAG_QUERY_REQUIRED
(int)
FILTER_FLAG_SCHEME_REQUIRED
(int)
FILTER_FLAG_HOST_REQUIRED
(int)
FILTER_FLAG_HOSTNAME
(int)
FILTER_FLAG_IPV4
(int)
FILTER_FLAG_IPV6
(int)
FILTER_FLAG_NO_RES_RANGE
(int)
FILTER_FLAG_NO_PRIV_RANGE
(int)
FILTER_FLAG_EMAIL_UNICODE
(int)